general encrypted
parent
8eac30aa7e
commit
3eda8f5eb1
32
bash_aliases
32
bash_aliases
|
@ -1,21 +1,21 @@
|
||||||
alias c='cd /usr/share/gamewheel'
|
alias c='cd /usr/share/cybafelo'
|
||||||
alias s='cd /usr/share/gamewheel && ./start'
|
alias s='cd /usr/share/cybafelo && ./start'
|
||||||
alias d='cd /usr/share/gamewheel && ./delete'
|
alias d='cd /usr/share/cybafelo && ./delete'
|
||||||
alias st='cd /usr/share/gamewheel && ./stop'
|
alias st='cd /usr/share/cybafelo && ./stop'
|
||||||
alias g='cd /usr/share/gamewheel'
|
alias g='cd /usr/share/cybafelo'
|
||||||
alias p='cd /usr/share/gamewheel/3d-pong'
|
alias p='cd /usr/share/cybafelo/3d-pong'
|
||||||
alias 3d='cd /usr/share/gamewheel/3d-editor'
|
alias 3d='cd /usr/share/cybafelo/3d-editor'
|
||||||
alias gl='cd /usr/share/gamewheel/game-lib'
|
alias gl='cd /usr/share/cybafelo/game-lib'
|
||||||
alias ps='cd /usr/share/gamewheel && ./start_pong'
|
alias ps='cd /usr/share/cybafelo && ./start_pong'
|
||||||
alias api='cd /usr/share/gamewheel && ./start_api'
|
alias api='cd /usr/share/cybafelo && ./start_api'
|
||||||
alias app='cd /usr/share/gamewheel && ./start_app'
|
alias app='cd /usr/share/cybafelo && ./start_app'
|
||||||
alias port='cd /usr/share/gamewheel && ./start_port'
|
alias port='cd /usr/share/cybafelo && ./start_port'
|
||||||
alias gate='cd /usr/share/gamewheel && ./start_gate'
|
alias gate='cd /usr/share/cybafelo && ./start_gate'
|
||||||
alias e1='cd /usr/share/gamewheel && ./start_editor'
|
alias e1='cd /usr/share/cybafelo && ./start_editor'
|
||||||
alias logs='cd /usr/share/gamewheel && ./logs'
|
alias logs='cd /usr/share/cybafelo && ./logs'
|
||||||
alias m='pm2 monit'
|
alias m='pm2 monit'
|
||||||
alias list='pm2 list'
|
alias list='pm2 list'
|
||||||
function r() {
|
function r() {
|
||||||
/usr/share/gamewheel/restart "$@"
|
/usr/share/cybafelo/restart "$@"
|
||||||
}
|
}
|
||||||
export -f r
|
export -f r
|
||||||
|
|
|
@ -23960,3 +23960,11 @@ git commit -am "loading jobs - catching bad cron configs"
|
||||||
git push
|
git push
|
||||||
m
|
m
|
||||||
exit
|
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
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
#for package in $()
|
#for package in $()
|
||||||
for dir in /usr/share/gamewheel/*/
|
for dir in /usr/share/cybafelo/*/
|
||||||
do
|
do
|
||||||
dir_short_name=${dir%*/}
|
dir_short_name=${dir%*/}
|
||||||
dir_short_name=${dir_short_name##*/}
|
dir_short_name=${dir_short_name##*/}
|
||||||
|
|
12
clients.js
12
clients.js
|
@ -1,12 +1,12 @@
|
||||||
var clients = {
|
var clients = {
|
||||||
'3d-pong' : {
|
'3d-pong' : {
|
||||||
title : "Gamewheel Multiplayer VR Pong",
|
title : "Gamewheel Multiplayer VR Pong",
|
||||||
ogUrl : "http://3d-pong.gamewheel.com",
|
ogUrl : "http://3d-pong.cybafelo.com",
|
||||||
ogType : "website",
|
ogType : "website",
|
||||||
ogTitle : "Gamewheel Multiplayer VR Pong",
|
ogTitle : "Gamewheel Multiplayer VR Pong",
|
||||||
ogDescription : "Games is our game",
|
ogDescription : "Games is our game",
|
||||||
ogImage : "http://3d-pong.gamewheel.com/pong_image.png",
|
ogImage : "http://3d-pong.cybafelo.com/pong_image.png",
|
||||||
ctaUrl : "https://www.gamewheel.com",
|
ctaUrl : "https://www.cybafelo.com",
|
||||||
account : 'root',
|
account : 'root',
|
||||||
subAccount : 'root',
|
subAccount : 'root',
|
||||||
nameOfTheGame : 'pong',
|
nameOfTheGame : 'pong',
|
||||||
|
@ -18,18 +18,18 @@ var clients = {
|
||||||
'default': {
|
'default': {
|
||||||
title : 'Great Job!',
|
title : 'Great Job!',
|
||||||
message : 'Challenge your friends or learn more about Gamewheel',
|
message : 'Challenge your friends or learn more about Gamewheel',
|
||||||
cta : 'https://www.gamewheel.com',
|
cta : 'https://www.cybafelo.com',
|
||||||
quote : 'VR PONG!'
|
quote : 'VR PONG!'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
'3doo' : {
|
'3doo' : {
|
||||||
title : "3doo - VR Pong",
|
title : "3doo - VR Pong",
|
||||||
ogUrl : "http://3doo.gamewheel.com",
|
ogUrl : "http://3doo.cybafelo.com",
|
||||||
ogType : "website",
|
ogType : "website",
|
||||||
ogTitle : "3doo – VR App",
|
ogTitle : "3doo – VR App",
|
||||||
ogDescription : "Spiele PONG in 3d und VR mit 3doo",
|
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",
|
ctaUrl : "https://3doo.com",
|
||||||
account : '3doo',
|
account : '3doo',
|
||||||
subAccount : 'root',
|
subAccount : 'root',
|
||||||
|
|
30
config.js
30
config.js
|
@ -1,14 +1,14 @@
|
||||||
var config = {
|
var config = {
|
||||||
vr_pong: {
|
vr_pong: {
|
||||||
url: "https://tj-3d-pong.gamewheel.com"
|
url: "https://tj-3d-pong.cybafelo.com"
|
||||||
},
|
},
|
||||||
vr_racer: {
|
vr_racer: {
|
||||||
url: "https://tj-3d-racing.gamewheel.com"
|
url: "https://tj-3d-racing.cybafelo.com"
|
||||||
},
|
},
|
||||||
editor: {
|
editor: {
|
||||||
url: "https://tj-3d-editor.gamewheel.com",
|
url: "https://tj-3d-editor.cybafelo.com",
|
||||||
default: {
|
default: {
|
||||||
platform: 'gamewheel',
|
platform: 'cybafelo',
|
||||||
account: 'root',
|
account: 'root',
|
||||||
subAccount: 'root',
|
subAccount: 'root',
|
||||||
nameOfTheGame: 'test'
|
nameOfTheGame: 'test'
|
||||||
|
@ -16,39 +16,39 @@ var config = {
|
||||||
uploadPath: '/uploads'
|
uploadPath: '/uploads'
|
||||||
},
|
},
|
||||||
api16: {
|
api16: {
|
||||||
url: "https://tj-api-v1.gamewheel.com"
|
url: "https://tj-api-v1.cybafelo.com"
|
||||||
},
|
},
|
||||||
tools: {
|
tools: {
|
||||||
url: "https://tj-tools.gamewheel.com",
|
url: "https://tj-tools.cybafelo.com",
|
||||||
default: {
|
default: {
|
||||||
platform: 'gamewheel',
|
platform: 'cybafelo',
|
||||||
account: 'root',
|
account: 'root',
|
||||||
subAccount: 'root'
|
subAccount: 'root'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
app: {
|
app: {
|
||||||
url: 'https://tj-app.gamewheel.com'
|
url: 'https://tj-app.cybafelo.com'
|
||||||
},
|
},
|
||||||
api: {
|
api: {
|
||||||
url: 'https://tj-api.gamewheel.com'
|
url: 'https://tj-api.cybafelo.com'
|
||||||
},
|
},
|
||||||
cdn: {
|
cdn: {
|
||||||
url: 'https://tj-cdn.gamewheel.com'
|
url: 'https://tj-cdn.cybafelo.com'
|
||||||
},
|
},
|
||||||
gate: {
|
gate: {
|
||||||
url: 'https://tj-gate.gamewheel.com'
|
url: 'https://tj-gate.cybafelo.com'
|
||||||
},
|
},
|
||||||
content: {
|
content: {
|
||||||
url: 'https://tj-content.gamewheel.com'
|
url: 'https://tj-content.cybafelo.com'
|
||||||
},
|
},
|
||||||
asset: {
|
asset: {
|
||||||
url: 'https://tj-asset.gamewheel.com'
|
url: 'https://tj-asset.cybafelo.com'
|
||||||
},
|
},
|
||||||
port: {
|
port: {
|
||||||
url: 'https://tj-port.gamewheel.com'
|
url: 'https://tj-port.cybafelo.com'
|
||||||
},
|
},
|
||||||
cron: {
|
cron: {
|
||||||
url: 'https://tj-cron.gamewheel.com'
|
url: 'https://tj-cron.cybafelo.com'
|
||||||
},
|
},
|
||||||
environment: {
|
environment: {
|
||||||
mode: 'development'
|
mode: 'development'
|
||||||
|
|
Binary file not shown.
32
hosts
32
hosts
|
@ -1,23 +1,23 @@
|
||||||
127.0.0.1 localhost
|
127.0.0.1 localhost
|
||||||
127.0.1.1 cybafelo
|
127.0.1.1 cybafelo
|
||||||
127.0.1.1 cybafelo.gamewheel.com
|
127.0.1.1 cybafelo.cybafelo.com
|
||||||
|
|
||||||
# Gamewheel dev endpoints
|
# Gamewheel dev endpoints
|
||||||
127.0.1.1 tj-3d-editor.gamewheel.com
|
127.0.1.1 tj-3d-editor.cybafelo.com
|
||||||
127.0.1.1 tj-3d-pong.gamewheel.com
|
127.0.1.1 tj-3d-pong.cybafelo.com
|
||||||
127.0.1.1 tj-3doo.gamewheel.com
|
127.0.1.1 tj-3doo.cybafelo.com
|
||||||
127.0.1.1 tj-3d-racing.gamewheel.com
|
127.0.1.1 tj-3d-racing.cybafelo.com
|
||||||
127.0.1.1 tj-api-v1.gamewheel.com
|
127.0.1.1 tj-api-v1.cybafelo.com
|
||||||
127.0.1.1 tj-tools.gamewheel.com
|
127.0.1.1 tj-tools.cybafelo.com
|
||||||
127.0.1.1 tj-gate.gamewheel.com
|
127.0.1.1 tj-gate.cybafelo.com
|
||||||
127.0.1.1 tj-content.gamewheel.com
|
127.0.1.1 tj-content.cybafelo.com
|
||||||
127.0.1.1 tj-asset.gamewheel.com
|
127.0.1.1 tj-asset.cybafelo.com
|
||||||
127.0.1.1 tj-port.gamewheel.com
|
127.0.1.1 tj-port.cybafelo.com
|
||||||
127.0.1.1 tj-app.gamewheel.com
|
127.0.1.1 tj-app.cybafelo.com
|
||||||
127.0.1.1 tj-api.gamewheel.com
|
127.0.1.1 tj-api.cybafelo.com
|
||||||
127.0.1.1 tj-cdn.gamewheel.com
|
127.0.1.1 tj-cdn.cybafelo.com
|
||||||
127.0.1.1 tj-mail.gamewheel.com
|
127.0.1.1 tj-mail.cybafelo.com
|
||||||
127.0.1.1 tj-cron.gamewheel.com
|
127.0.1.1 tj-cron.cybafelo.com
|
||||||
|
|
||||||
# The following lines are desirable for IPv6 capable hosts
|
# The following lines are desirable for IPv6 capable hosts
|
||||||
::1 ip6-localhost ip6-loopback
|
::1 ip6-localhost ip6-loopback
|
||||||
|
|
|
@ -12,7 +12,7 @@ server {
|
||||||
|
|
||||||
server_name ~^(?<environment>.*?)-(?<app>.*?)\.(?<host_domain>.*);
|
server_name ~^(?<environment>.*?)-(?<app>.*?)\.(?<host_domain>.*);
|
||||||
|
|
||||||
root /usr/share/gamewheel/$app;
|
root /usr/share/cybafelo/$app;
|
||||||
|
|
||||||
location ~ \.php$ {
|
location ~ \.php$ {
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@ server {
|
||||||
add_header Content-Type text/plain;
|
add_header Content-Type text/plain;
|
||||||
add_header Access-Control-Allow-Origin $http_origin;
|
add_header Access-Control-Allow-Origin $http_origin;
|
||||||
add_header Access-Control-Allow-Methods "GET, POST, PUT, DELETE, OPTIONS";
|
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;
|
add_header Access-Control-Allow-Credentials true;
|
||||||
return 200;
|
return 200;
|
||||||
}
|
}
|
||||||
|
@ -41,7 +41,7 @@ server {
|
||||||
add_header Content-Type text/plain;
|
add_header Content-Type text/plain;
|
||||||
add_header Access-Control-Allow-Origin $http_origin;
|
add_header Access-Control-Allow-Origin $http_origin;
|
||||||
add_header Access-Control-Allow-Methods "GET, POST, PUT, DELETE, OPTIONS";
|
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;
|
add_header Access-Control-Allow-Credentials true;
|
||||||
return 200;
|
return 200;
|
||||||
}
|
}
|
||||||
|
@ -58,7 +58,7 @@ server {
|
||||||
add_header Content-Type text/plain;
|
add_header Content-Type text/plain;
|
||||||
add_header Access-Control-Allow-Origin $http_origin;
|
add_header Access-Control-Allow-Origin $http_origin;
|
||||||
add_header Access-Control-Allow-Methods "GET, POST, PUT, DELETE, OPTIONS";
|
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;
|
add_header Access-Control-Allow-Credentials true;
|
||||||
return 200;
|
return 200;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
ssl_certificate ssl/gamewheel.com.crt;
|
ssl_certificate ssl/cybafelo.com.crt;
|
||||||
ssl_certificate_key ssl/gamewheel.com.key;
|
ssl_certificate_key ssl/cybafelo.com.key;
|
||||||
ssl_session_timeout 5m;
|
ssl_session_timeout 5m;
|
||||||
## Don't use SSL v3 because of POODLE vulnerability
|
## Don't use SSL v3 because of POODLE vulnerability
|
||||||
# ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2;
|
# ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"name": "gamewheel-config",
|
"name": "cybafelo-config",
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"author": "Theunis J. Botha",
|
"author": "Theunis J. Botha",
|
||||||
"description": "Tools for Gamewheel",
|
"description": "Tools for Gamewheel",
|
||||||
|
|
10
secure.js
10
secure.js
|
@ -26,7 +26,7 @@ var secure = {
|
||||||
},
|
},
|
||||||
mongodb: {
|
mongodb: {
|
||||||
host: 'mongodb://127.0.0.1',
|
host: 'mongodb://127.0.0.1',
|
||||||
db: 'gamewheel',
|
db: 'cybafelo',
|
||||||
port: 27017,
|
port: 27017,
|
||||||
shardPort: 27018,
|
shardPort: 27018,
|
||||||
options: {
|
options: {
|
||||||
|
@ -96,7 +96,7 @@ var secure = {
|
||||||
// host: "smtp.office365.com",
|
// host: "smtp.office365.com",
|
||||||
// port: 587,
|
// port: 587,
|
||||||
// auth: {
|
// auth: {
|
||||||
// user: "admin@gamewheel.com",
|
// user: "admin@cybafelo.com",
|
||||||
// pass: "Toypro42!"
|
// pass: "Toypro42!"
|
||||||
// },
|
// },
|
||||||
// secureConnection: false,
|
// secureConnection: false,
|
||||||
|
@ -105,8 +105,8 @@ var secure = {
|
||||||
// rejectUnauthorized: false
|
// rejectUnauthorized: false
|
||||||
// },
|
// },
|
||||||
// emails: {
|
// emails: {
|
||||||
// founder: "evgeni@gamewheel.com",
|
// founder: "evgeni@cybafelo.com",
|
||||||
// support: "support@gamewheel.com"
|
// support: "support@cybafelo.com"
|
||||||
// }
|
// }
|
||||||
// },
|
// },
|
||||||
mailer: {
|
mailer: {
|
||||||
|
@ -129,7 +129,7 @@ var secure = {
|
||||||
cron: {
|
cron: {
|
||||||
port: 3116,
|
port: 3116,
|
||||||
debugPort: 3216,
|
debugPort: 3216,
|
||||||
apiUser : 'tj@gamewheel.com',
|
apiUser : 'tj@cybafelo.com',
|
||||||
apiPassword : 'test12345'
|
apiPassword : 'test12345'
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
2
start
2
start
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
cd /usr/share/gamewheel
|
cd /usr/share/cybafelo
|
||||||
./start_editor
|
./start_editor
|
||||||
./start_api
|
./start_api
|
||||||
./start_app
|
./start_app
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
cd /usr/share/gamewheel/api
|
cd /usr/share/cybafelo/api
|
||||||
pm2 start bin/start --node-args="--debug=3211" --name api
|
pm2 start bin/start --node-args="--debug=3211" --name api
|
|
@ -1,3 +1,3 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
cd /usr/share/gamewheel/app
|
cd /usr/share/cybafelo/app
|
||||||
pm2 start bin/start --node-args="--debug=3210" --name app
|
pm2 start bin/start --node-args="--debug=3210" --name app
|
|
@ -1,3 +1,3 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
cd /usr/share/gamewheel/cron
|
cd /usr/share/cybafelo/cron
|
||||||
pm2 start bin/start --node-args="--debug-brk=3216" --name cron
|
pm2 start bin/start --node-args="--debug-brk=3216" --name cron
|
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/bash
|
#!/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
|
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
|
pm2 start server.js --node-args="--max-old-space-size=16000 --debug=3203" --name 3d-editor
|
|
@ -1,3 +1,3 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
cd /usr/share/gamewheel/gate
|
cd /usr/share/cybafelo/gate
|
||||||
pm2 start bin/start --node-args="--debug=3215" --name gate
|
pm2 start bin/start --node-args="--debug=3215" --name gate
|
|
@ -1,3 +1,3 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
cd /usr/share/gamewheel/gate
|
cd /usr/share/cybafelo/gate
|
||||||
pm2 start capto -- run
|
pm2 start capto -- run
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/bash
|
#!/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
|
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
|
pm2 start server.js --node-args="--max-old-space-size=16000 --debug=3201" --name 3d-pong
|
|
@ -1,3 +1,3 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
cd /usr/share/gamewheel/port
|
cd /usr/share/cybafelo/port
|
||||||
pm2 start bin/start --node-args="--debug=3214" --name port
|
pm2 start bin/start --node-args="--debug=3214" --name port
|
|
@ -1,3 +1,3 @@
|
||||||
#!/usr/bin/env bash
|
#!/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
|
#pm2 start app.js --node-args="--max-old-space-size=16000 --debug=3202" --name 3d-racing-server
|
|
@ -1,3 +1,3 @@
|
||||||
#!/usr/bin/env bash
|
#!/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
|
pm2 start server.js --node-args="--max-old-space-size=16000 --debug=3209" --name tools
|
Loading…
Reference in New Issue