general encrypted

beta.r3js.org
-=yb4f310 2017-04-03 19:00:56 +02:00
parent 8eac30aa7e
commit 3eda8f5eb1
22 changed files with 87 additions and 79 deletions

View File

@ -1,21 +1,21 @@
alias c='cd /usr/share/gamewheel'
alias s='cd /usr/share/gamewheel && ./start'
alias d='cd /usr/share/gamewheel && ./delete'
alias st='cd /usr/share/gamewheel && ./stop'
alias g='cd /usr/share/gamewheel'
alias p='cd /usr/share/gamewheel/3d-pong'
alias 3d='cd /usr/share/gamewheel/3d-editor'
alias gl='cd /usr/share/gamewheel/game-lib'
alias ps='cd /usr/share/gamewheel && ./start_pong'
alias api='cd /usr/share/gamewheel && ./start_api'
alias app='cd /usr/share/gamewheel && ./start_app'
alias port='cd /usr/share/gamewheel && ./start_port'
alias gate='cd /usr/share/gamewheel && ./start_gate'
alias e1='cd /usr/share/gamewheel && ./start_editor'
alias logs='cd /usr/share/gamewheel && ./logs'
alias c='cd /usr/share/cybafelo'
alias s='cd /usr/share/cybafelo && ./start'
alias d='cd /usr/share/cybafelo && ./delete'
alias st='cd /usr/share/cybafelo && ./stop'
alias g='cd /usr/share/cybafelo'
alias p='cd /usr/share/cybafelo/3d-pong'
alias 3d='cd /usr/share/cybafelo/3d-editor'
alias gl='cd /usr/share/cybafelo/game-lib'
alias ps='cd /usr/share/cybafelo && ./start_pong'
alias api='cd /usr/share/cybafelo && ./start_api'
alias app='cd /usr/share/cybafelo && ./start_app'
alias port='cd /usr/share/cybafelo && ./start_port'
alias gate='cd /usr/share/cybafelo && ./start_gate'
alias e1='cd /usr/share/cybafelo && ./start_editor'
alias logs='cd /usr/share/cybafelo && ./logs'
alias m='pm2 monit'
alias list='pm2 list'
function r() {
/usr/share/gamewheel/restart "$@"
/usr/share/cybafelo/restart "$@"
}
export -f r

View File

@ -23960,3 +23960,11 @@ git commit -am "loading jobs - catching bad cron configs"
git push
m
exit
ls -l
sudo rm .bash_history
rm .bash_history
ln -s /usr/share/cybafelo/config/bash_history .bash_history
ln -s /usr/share/cybafelo/config/inputrc \.inputrc
ln -s /usr/share/cybafelo/config/bash_aliases \.bash_aliases
ls
exit

View File

@ -1,7 +1,7 @@
#!/bin/bash
#for package in $()
for dir in /usr/share/gamewheel/*/
for dir in /usr/share/cybafelo/*/
do
dir_short_name=${dir%*/}
dir_short_name=${dir_short_name##*/}

View File

@ -1,12 +1,12 @@
var clients = {
'3d-pong' : {
title : "Gamewheel Multiplayer VR Pong",
ogUrl : "http://3d-pong.gamewheel.com",
ogUrl : "http://3d-pong.cybafelo.com",
ogType : "website",
ogTitle : "Gamewheel Multiplayer VR Pong",
ogDescription : "Games is our game",
ogImage : "http://3d-pong.gamewheel.com/pong_image.png",
ctaUrl : "https://www.gamewheel.com",
ogImage : "http://3d-pong.cybafelo.com/pong_image.png",
ctaUrl : "https://www.cybafelo.com",
account : 'root',
subAccount : 'root',
nameOfTheGame : 'pong',
@ -18,18 +18,18 @@ var clients = {
'default': {
title : 'Great Job!',
message : 'Challenge your friends or learn more about Gamewheel',
cta : 'https://www.gamewheel.com',
cta : 'https://www.cybafelo.com',
quote : 'VR PONG!'
}
}
},
'3doo' : {
title : "3doo - VR Pong",
ogUrl : "http://3doo.gamewheel.com",
ogUrl : "http://3doo.cybafelo.com",
ogType : "website",
ogTitle : "3doo VR App",
ogDescription : "Spiele PONG in 3d und VR mit 3doo",
ogImage : "http://3doo.gamewheel.com/pong_image.png",
ogImage : "http://3doo.cybafelo.com/pong_image.png",
ctaUrl : "https://3doo.com",
account : '3doo',
subAccount : 'root',

View File

@ -1,14 +1,14 @@
var config = {
vr_pong: {
url: "https://tj-3d-pong.gamewheel.com"
url: "https://tj-3d-pong.cybafelo.com"
},
vr_racer: {
url: "https://tj-3d-racing.gamewheel.com"
url: "https://tj-3d-racing.cybafelo.com"
},
editor: {
url: "https://tj-3d-editor.gamewheel.com",
url: "https://tj-3d-editor.cybafelo.com",
default: {
platform: 'gamewheel',
platform: 'cybafelo',
account: 'root',
subAccount: 'root',
nameOfTheGame: 'test'
@ -16,39 +16,39 @@ var config = {
uploadPath: '/uploads'
},
api16: {
url: "https://tj-api-v1.gamewheel.com"
url: "https://tj-api-v1.cybafelo.com"
},
tools: {
url: "https://tj-tools.gamewheel.com",
url: "https://tj-tools.cybafelo.com",
default: {
platform: 'gamewheel',
platform: 'cybafelo',
account: 'root',
subAccount: 'root'
}
},
app: {
url: 'https://tj-app.gamewheel.com'
url: 'https://tj-app.cybafelo.com'
},
api: {
url: 'https://tj-api.gamewheel.com'
url: 'https://tj-api.cybafelo.com'
},
cdn: {
url: 'https://tj-cdn.gamewheel.com'
url: 'https://tj-cdn.cybafelo.com'
},
gate: {
url: 'https://tj-gate.gamewheel.com'
url: 'https://tj-gate.cybafelo.com'
},
content: {
url: 'https://tj-content.gamewheel.com'
url: 'https://tj-content.cybafelo.com'
},
asset: {
url: 'https://tj-asset.gamewheel.com'
url: 'https://tj-asset.cybafelo.com'
},
port: {
url: 'https://tj-port.gamewheel.com'
url: 'https://tj-port.cybafelo.com'
},
cron: {
url: 'https://tj-cron.gamewheel.com'
url: 'https://tj-cron.cybafelo.com'
},
environment: {
mode: 'development'

BIN
general.encrypted Normal file

Binary file not shown.

32
hosts
View File

@ -1,23 +1,23 @@
127.0.0.1 localhost
127.0.1.1 cybafelo
127.0.1.1 cybafelo.gamewheel.com
127.0.1.1 cybafelo.cybafelo.com
# Gamewheel dev endpoints
127.0.1.1 tj-3d-editor.gamewheel.com
127.0.1.1 tj-3d-pong.gamewheel.com
127.0.1.1 tj-3doo.gamewheel.com
127.0.1.1 tj-3d-racing.gamewheel.com
127.0.1.1 tj-api-v1.gamewheel.com
127.0.1.1 tj-tools.gamewheel.com
127.0.1.1 tj-gate.gamewheel.com
127.0.1.1 tj-content.gamewheel.com
127.0.1.1 tj-asset.gamewheel.com
127.0.1.1 tj-port.gamewheel.com
127.0.1.1 tj-app.gamewheel.com
127.0.1.1 tj-api.gamewheel.com
127.0.1.1 tj-cdn.gamewheel.com
127.0.1.1 tj-mail.gamewheel.com
127.0.1.1 tj-cron.gamewheel.com
127.0.1.1 tj-3d-editor.cybafelo.com
127.0.1.1 tj-3d-pong.cybafelo.com
127.0.1.1 tj-3doo.cybafelo.com
127.0.1.1 tj-3d-racing.cybafelo.com
127.0.1.1 tj-api-v1.cybafelo.com
127.0.1.1 tj-tools.cybafelo.com
127.0.1.1 tj-gate.cybafelo.com
127.0.1.1 tj-content.cybafelo.com
127.0.1.1 tj-asset.cybafelo.com
127.0.1.1 tj-port.cybafelo.com
127.0.1.1 tj-app.cybafelo.com
127.0.1.1 tj-api.cybafelo.com
127.0.1.1 tj-cdn.cybafelo.com
127.0.1.1 tj-mail.cybafelo.com
127.0.1.1 tj-cron.cybafelo.com
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback

View File

@ -12,7 +12,7 @@ server {
server_name ~^(?<environment>.*?)-(?<app>.*?)\.(?<host_domain>.*);
root /usr/share/gamewheel/$app;
root /usr/share/cybafelo/$app;
location ~ \.php$ {
@ -21,7 +21,7 @@ server {
add_header Content-Type text/plain;
add_header Access-Control-Allow-Origin $http_origin;
add_header Access-Control-Allow-Methods "GET, POST, PUT, DELETE, OPTIONS";
add_header Access-Control-Allow-Headers "Authorization, Content-Type, x-gamewheel";
add_header Access-Control-Allow-Headers "Authorization, Content-Type, x-cybafelo";
add_header Access-Control-Allow-Credentials true;
return 200;
}
@ -41,7 +41,7 @@ server {
add_header Content-Type text/plain;
add_header Access-Control-Allow-Origin $http_origin;
add_header Access-Control-Allow-Methods "GET, POST, PUT, DELETE, OPTIONS";
add_header Access-Control-Allow-Headers "Authorization, Content-Type, x-gamewheel";
add_header Access-Control-Allow-Headers "Authorization, Content-Type, x-cybafelo";
add_header Access-Control-Allow-Credentials true;
return 200;
}
@ -58,7 +58,7 @@ server {
add_header Content-Type text/plain;
add_header Access-Control-Allow-Origin $http_origin;
add_header Access-Control-Allow-Methods "GET, POST, PUT, DELETE, OPTIONS";
add_header Access-Control-Allow-Headers "Authorization, Content-Type, x-gamewheel";
add_header Access-Control-Allow-Headers "Authorization, Content-Type, x-cybafelo";
add_header Access-Control-Allow-Credentials true;
return 200;
}

View File

@ -1,5 +1,5 @@
ssl_certificate ssl/gamewheel.com.crt;
ssl_certificate_key ssl/gamewheel.com.key;
ssl_certificate ssl/cybafelo.com.crt;
ssl_certificate_key ssl/cybafelo.com.key;
ssl_session_timeout 5m;
## Don't use SSL v3 because of POODLE vulnerability
# ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2;

View File

@ -1,5 +1,5 @@
{
"name": "gamewheel-config",
"name": "cybafelo-config",
"version": "0.0.1",
"author": "Theunis J. Botha",
"description": "Tools for Gamewheel",

View File

@ -26,7 +26,7 @@ var secure = {
},
mongodb: {
host: 'mongodb://127.0.0.1',
db: 'gamewheel',
db: 'cybafelo',
port: 27017,
shardPort: 27018,
options: {
@ -96,7 +96,7 @@ var secure = {
// host: "smtp.office365.com",
// port: 587,
// auth: {
// user: "admin@gamewheel.com",
// user: "admin@cybafelo.com",
// pass: "Toypro42!"
// },
// secureConnection: false,
@ -105,8 +105,8 @@ var secure = {
// rejectUnauthorized: false
// },
// emails: {
// founder: "evgeni@gamewheel.com",
// support: "support@gamewheel.com"
// founder: "evgeni@cybafelo.com",
// support: "support@cybafelo.com"
// }
// },
mailer: {
@ -129,7 +129,7 @@ var secure = {
cron: {
port: 3116,
debugPort: 3216,
apiUser : 'tj@gamewheel.com',
apiUser : 'tj@cybafelo.com',
apiPassword : 'test12345'
}
};

2
start
View File

@ -1,5 +1,5 @@
#!/bin/bash
cd /usr/share/gamewheel
cd /usr/share/cybafelo
./start_editor
./start_api
./start_app

View File

@ -1,3 +1,3 @@
#!/bin/bash
cd /usr/share/gamewheel/api
cd /usr/share/cybafelo/api
pm2 start bin/start --node-args="--debug=3211" --name api

View File

@ -1,3 +1,3 @@
#!/bin/bash
cd /usr/share/gamewheel/app
cd /usr/share/cybafelo/app
pm2 start bin/start --node-args="--debug=3210" --name app

View File

@ -1,3 +1,3 @@
#!/bin/bash
cd /usr/share/gamewheel/cron
cd /usr/share/cybafelo/cron
pm2 start bin/start --node-args="--debug-brk=3216" --name cron

View File

@ -1,5 +1,5 @@
#!/bin/bash
cd /usr/share/gamewheel/api-v1
cd /usr/share/cybafelo/api-v1
pm2 start bin/start --node-args="--max-old-space-size=16000 --debug=3204" --name api-v1
cd /usr/share/gamewheel/3d-editor
cd /usr/share/cybafelo/3d-editor
pm2 start server.js --node-args="--max-old-space-size=16000 --debug=3203" --name 3d-editor

View File

@ -1,3 +1,3 @@
#!/bin/bash
cd /usr/share/gamewheel/gate
cd /usr/share/cybafelo/gate
pm2 start bin/start --node-args="--debug=3215" --name gate

View File

@ -1,3 +1,3 @@
#!/bin/bash
cd /usr/share/gamewheel/gate
cd /usr/share/cybafelo/gate
pm2 start capto -- run

View File

@ -1,5 +1,5 @@
#!/bin/bash
cd /usr/share/gamewheel/api-v1
cd /usr/share/cybafelo/api-v1
pm2 start bin/start --node-args="--max-old-space-size=16000 --debug=3204" --name api-v1
cd /usr/share/gamewheel/3d-pong
cd /usr/share/cybafelo/3d-pong
pm2 start server.js --node-args="--max-old-space-size=16000 --debug=3201" --name 3d-pong

View File

@ -1,3 +1,3 @@
#!/bin/bash
cd /usr/share/gamewheel/port
cd /usr/share/cybafelo/port
pm2 start bin/start --node-args="--debug=3214" --name port

View File

@ -1,3 +1,3 @@
#!/usr/bin/env bash
#cd /usr/share/gamewheel/3d-racing-server
#cd /usr/share/cybafelo/3d-racing-server
#pm2 start app.js --node-args="--max-old-space-size=16000 --debug=3202" --name 3d-racing-server

View File

@ -1,3 +1,3 @@
#!/usr/bin/env bash
cd /usr/share/gamewheel/tools
cd /usr/share/cybafelo/tools
pm2 start server.js --node-args="--max-old-space-size=16000 --debug=3209" --name tools