stuff
parent
611a191a84
commit
aea2bc34a0
|
@ -1 +1,5 @@
|
|||
node_modules
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
general
|
||||
>>>>>>> 56f9a0e9c814bc05cdd17da606e11bf3f3485499
|
||||
|
|
20
bash_aliases
20
bash_aliases
|
@ -1,6 +1,7 @@
|
|||
alias c='cd /usr/share/cybafelo'
|
||||
alias s='cd /usr/share/cybafelo && ./start'
|
||||
alias d='cd /usr/share/cybafelo && ./delete'
|
||||
<<<<<<< HEAD
|
||||
alias r='cd /usr/share/cybafelo && ./restart'
|
||||
alias st='cd /usr/share/cybafelo && ./stop'
|
||||
alias g='cd /usr/share/cybafelo'
|
||||
|
@ -10,9 +11,26 @@ alias 3d2='cd /usr/share/cybafelo/3d-editor-v2'
|
|||
alias gl2='cd /usr/share/cybafelo/game-lib-v2'
|
||||
alias 3d3='cd /usr/share/cybafelo/3d-editor-v3'
|
||||
alias gl3='cd /usr/share/cybafelo/game-lib-v3'
|
||||
alias ps='cd /usr/share/cybafelo && ./start_pong'
|
||||
alias e1='cd /usr/share/cybafelo && ./start_editor_v1'
|
||||
alias e2='cd /usr/share/cybafelo && ./start_editor_v2'
|
||||
alias e3='cd /usr/share/cybafelo && ./start_editor_v3'
|
||||
alias l='cd /usr/share/cybafelo && ./logs'
|
||||
alias m='pm2 monit'
|
||||
=======
|
||||
alias st='cd /usr/share/cybafelo && ./stop'
|
||||
alias gl='cd /usr/share/cybafelo/game-lib'
|
||||
alias p='cd /usr/share/cybafelo/preview'
|
||||
alias 3d='cd /usr/share/cybafelo/3d-editor'
|
||||
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/cybafelo/restart "$@"
|
||||
}
|
||||
export -f r
|
||||
>>>>>>> 56f9a0e9c814bc05cdd17da606e11bf3f3485499
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,27 @@
|
|||
#!/bin/bash
|
||||
|
||||
#for package in $()
|
||||
for dir in /usr/share/cybafelo/*/
|
||||
do
|
||||
dir_short_name=${dir%*/}
|
||||
dir_short_name=${dir_short_name##*/}
|
||||
|
||||
if [ -d "$dir/.git" ]; then
|
||||
echo "===========================starting============================ $dir_short_name"
|
||||
cd $dir
|
||||
git branch
|
||||
git pull
|
||||
if [ -f "package.json" ]; then
|
||||
npm install
|
||||
fi
|
||||
if [ -f "bower.js" ]; then
|
||||
bower install
|
||||
fi
|
||||
if [ -f "gulpfile.js" ]; then
|
||||
gulp build
|
||||
fi
|
||||
echo "=============================done=============================="
|
||||
fi
|
||||
done
|
||||
|
||||
r
|
|
@ -0,0 +1,15 @@
|
|||
#!/bin/bash
|
||||
|
||||
#for package in $()
|
||||
for dir in /usr/share/cybafelo/*/
|
||||
do
|
||||
dir_short_name=${dir%*/}
|
||||
dir_short_name=${dir_short_name##*/}
|
||||
|
||||
if [ -d "$dir/.git" ]; then
|
||||
echo "===========================starting============================ $dir_short_name"
|
||||
cd $dir
|
||||
git checkout $1
|
||||
echo "=============================done=============================="
|
||||
fi
|
||||
done
|
|
@ -0,0 +1,69 @@
|
|||
var clients = {
|
||||
'3d-pong' : {
|
||||
title : "Gamewheel Multiplayer VR Pong",
|
||||
ogUrl : "http://3d-pong.cybafelo.local",
|
||||
ogType : "website",
|
||||
ogTitle : "Gamewheel Multiplayer VR Pong",
|
||||
ogDescription : "Games is our game",
|
||||
ogImage : "http://3d-pong.cybafelo.local/pong_image.png",
|
||||
ctaUrl : "https://www.cybafelo.local",
|
||||
account : 'root',
|
||||
subAccount : 'root',
|
||||
nameOfTheGame : 'pong',
|
||||
messageItemStart : 'VR Pong - Invite your friends to play!',
|
||||
messageItemEnd : [
|
||||
'Challenge your friends :)'
|
||||
],
|
||||
endSceneIndex : {
|
||||
'default': {
|
||||
title : 'Great Job!',
|
||||
message : 'Challenge your friends or learn more about Gamewheel',
|
||||
cta : 'https://www.cybafelo.local',
|
||||
quote : 'VR PONG!'
|
||||
}
|
||||
}
|
||||
},
|
||||
'3doo' : {
|
||||
title : "3doo - VR Pong",
|
||||
ogUrl : "http://3doo.cybafelo.local",
|
||||
ogType : "website",
|
||||
ogTitle : "3doo – VR App",
|
||||
ogDescription : "Spiele PONG in 3d und VR mit 3doo",
|
||||
ogImage : "http://3doo.cybafelo.local/pong_image.png",
|
||||
ctaUrl : "https://3doo.com",
|
||||
account : '3doo',
|
||||
subAccount : 'root',
|
||||
nameOfTheGame : 'pong',
|
||||
messageItemStart : '3doo VR Pong - Invite your friends to play!',
|
||||
messageItemEnd : [
|
||||
'Please install our<br/> <b>3doo Movie Player App</b> <br/>using the following link<br/> to watch <b>your free movie</b>',
|
||||
'<b>Want more?</b><br/> Download our<br/> <b>3doo Movie Player App.</b>',
|
||||
'<b>Want even more fun?</b><br/> Invite your friends <br/><b>AND BEAT \'EM!</b>',
|
||||
'<b>Like to win?</b><br/> Challenge more friends <br/><b>AND BEAT \'EM!</b>'
|
||||
],
|
||||
endSceneIndex : {
|
||||
'default': {
|
||||
title : 'Great Job!',
|
||||
message : 'Challenge your friends<br/> AND BEAT ‘EM <br/>or learn more about 3doo.<br/>',
|
||||
cta : 'https://app.adjust.com/9lxsna',
|
||||
quote : 'Try this awesome 3doo VR game – and beat me!'
|
||||
},
|
||||
'alternate' : {
|
||||
title : 'Great Job!',
|
||||
message : 'Install our 3doo App now to watch the free movie!',
|
||||
cta : 'https://app.adjust.com/m0ewt7',
|
||||
quote : 'I just won free a 3doo movie by playing a VR game. Check it out'
|
||||
},
|
||||
'app' : {
|
||||
title : 'Great Job!',
|
||||
message : 'Challenge friends <br/>AND BEAT ‘EM <br/>or learn more about 3doo.',
|
||||
cta : 'https://3doo.com',
|
||||
quote : 'Just discovered a cool VR game in the 3doo app. Check it out!'
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
module.exports = clients;
|
75
config.js
75
config.js
|
@ -1,5 +1,17 @@
|
|||
var environment = {
|
||||
path : '/usr/share/cybafelo',
|
||||
protocol : 'http',
|
||||
environment : 'tj',
|
||||
domain : 'cybafelo.local'
|
||||
};
|
||||
|
||||
var protocol = environment.protocol;
|
||||
var user = environment.environment;
|
||||
var domain = environment.domain;
|
||||
|
||||
var config = {
|
||||
vr_pong: {
|
||||
<<<<<<< HEAD
|
||||
url: "http://3d-pong.cybafelo.local"
|
||||
},
|
||||
vr_racer: {
|
||||
|
@ -33,19 +45,38 @@ var config = {
|
|||
},
|
||||
editor_v3: {
|
||||
url: 'http://3d-editor-v3.cybafelo.local',
|
||||
=======
|
||||
url: protocol + '://' + user + '-3d-pong.' + domain
|
||||
},
|
||||
vr_racer: {
|
||||
url: protocol + '://' + user + '-3d-racing.' + domain
|
||||
},
|
||||
editor: {
|
||||
url: protocol + '://' + user + '-3d-editor.' + domain,
|
||||
>>>>>>> 56f9a0e9c814bc05cdd17da606e11bf3f3485499
|
||||
default: {
|
||||
platform: 'cybafelo',
|
||||
account: 'root',
|
||||
subAccount: 'root',
|
||||
nameOfTheGame: 'test'
|
||||
}
|
||||
},
|
||||
uploadPath: '/uploads'
|
||||
},
|
||||
<<<<<<< HEAD
|
||||
api_v3: {
|
||||
url: 'http://api-v3.cybafelo.local'
|
||||
},
|
||||
tools: {
|
||||
url: "http://tools.cybafelo.local",
|
||||
=======
|
||||
api16: {
|
||||
url: protocol + '://' + user + '-api-v1.' + domain,
|
||||
remoteUrl: protocol + '://live-api-v1.flyingspoon.de',
|
||||
uploadPath: '/uploads',
|
||||
impactUrl : 'http://tj-api-v1.cybafelo.local/impact'
|
||||
},
|
||||
tools: {
|
||||
url: protocol + '://' + user + '-tools.' + domain,
|
||||
>>>>>>> 56f9a0e9c814bc05cdd17da606e11bf3f3485499
|
||||
default: {
|
||||
platform: 'cybafelo',
|
||||
account: 'root',
|
||||
|
@ -53,6 +84,7 @@ var config = {
|
|||
}
|
||||
},
|
||||
app: {
|
||||
<<<<<<< HEAD
|
||||
url: 'http://app.cybafelo.local'
|
||||
},
|
||||
api: {
|
||||
|
@ -73,19 +105,50 @@ var config = {
|
|||
},
|
||||
gate: {
|
||||
url: 'http://gate.cybafelo.local'
|
||||
=======
|
||||
url: protocol + '://' + user + '-app.' + domain
|
||||
},
|
||||
preview: {
|
||||
url: protocol + '://' + user + '-preview.' + domain
|
||||
},
|
||||
api: {
|
||||
url: protocol + '://' + user + '-api.' + domain
|
||||
},
|
||||
cdn: {
|
||||
url: protocol + '://' + user + '-cdn.' + domain
|
||||
},
|
||||
gate: {
|
||||
url: protocol + '://' + user + '-gate.' + domain
|
||||
},
|
||||
content: {
|
||||
url: protocol + '://' + user + '-content.' + domain
|
||||
},
|
||||
asset: {
|
||||
url: protocol + '://' + user + '-asset.' + domain
|
||||
},
|
||||
port: {
|
||||
url: protocol + '://' + user + '-port.' + domain
|
||||
},
|
||||
cron: {
|
||||
url: protocol + '://' + user + '-cron.' + domain
|
||||
},
|
||||
analytics: {
|
||||
url: protocol + '://' + user + '-analytics.' + domain
|
||||
>>>>>>> 56f9a0e9c814bc05cdd17da606e11bf3f3485499
|
||||
},
|
||||
environment: {
|
||||
mode: 'development'
|
||||
}
|
||||
},
|
||||
db: {}
|
||||
};
|
||||
|
||||
if (typeof module !== 'undefined') {
|
||||
|
||||
if (typeof require !== 'undefined') {
|
||||
var secure = require('./secure');
|
||||
var _ = require('lodash');
|
||||
|
||||
_.merge(config, secure);
|
||||
_.merge(config, require('./secure'));
|
||||
_.merge(config, require('./connection'));
|
||||
_.merge(config, require('./model'));
|
||||
}
|
||||
|
||||
module.exports = config;
|
||||
|
|
|
@ -0,0 +1,20 @@
|
|||
var config = {
|
||||
connection: {
|
||||
model: {
|
||||
//
|
||||
// default model connection
|
||||
default: 'connect/connect.mongoose'
|
||||
}
|
||||
},
|
||||
|
||||
schema: {
|
||||
model: {
|
||||
//
|
||||
// default schema
|
||||
default: 'connect/schema.mongoose'
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
if (!!module) { module.exports = config; }
|
|
@ -0,0 +1,15 @@
|
|||
#!/bin/bash
|
||||
|
||||
#for package in $()
|
||||
for dir in /usr/share/cybafelo/*/
|
||||
do
|
||||
dir_short_name=${dir%*/}
|
||||
dir_short_name=${dir_short_name##*/}
|
||||
|
||||
if [ -d "$dir/.git" ]; then
|
||||
echo "===========================starting============================ $dir_short_name"
|
||||
cd $dir
|
||||
git pull --all
|
||||
echo "=============================done=============================="
|
||||
fi
|
||||
done
|
Binary file not shown.
48
hosts
48
hosts
|
@ -1,27 +1,37 @@
|
|||
127.0.0.1 localhost
|
||||
<<<<<<< HEAD
|
||||
127.0.1.1 cfo_plista
|
||||
127.0.1.1 cfo_plista.cybafelo.local
|
||||
|
||||
# Gamewheel dev endpoints
|
||||
127.0.1.1 tj-3d-editor.cybafelo.local
|
||||
127.0.1.1 tj-api-v1.cybafelo.local
|
||||
127.0.1.1 tj-preview.cybafelo.local
|
||||
|
||||
=======
|
||||
127.0.1.1 cybafelo
|
||||
127.0.1.1 cybafelo.cybafelo.local
|
||||
|
||||
# Gamewheel dev endpoints
|
||||
127.0.1.1 3d-editor.cybafelo.local
|
||||
127.0.1.1 3d-editor-debug.cybafelo.local
|
||||
127.0.1.1 3d-editor-v2.cybafelo.local
|
||||
127.0.1.1 3d-editor-v2-debug.cybafelo.local
|
||||
127.0.1.1 3d-editor-v3.cybafelo.local
|
||||
127.0.1.1 3d-editor-v3-debug.cybafelo.local
|
||||
127.0.1.1 3d-pong.cybafelo.local
|
||||
127.0.1.1 3d-pong-debug.cybafelo.local
|
||||
127.0.1.1 3d-racing.cybafelo.local
|
||||
127.0.1.1 3d-racing-debug.cybafelo.local
|
||||
127.0.1.1 api-v1.6.cybafelo.local
|
||||
127.0.1.1 api-v1.6-debug.cybafelo.local
|
||||
127.0.1.1 api-v2.cybafelo.local
|
||||
127.0.1.1 api-v2-debug.cybafelo.local
|
||||
127.0.1.1 api-v3.cybafelo.local
|
||||
127.0.1.1 api-v3-debug.cybafelo.local
|
||||
127.0.1.1 tools.cybafelo.local
|
||||
127.0.1.1 tools-debug.cybafelo.local
|
||||
|
||||
127.0.1.1 tj-3d-editor.cybafelo.local
|
||||
127.0.1.1 tj-3d-pong.cybafelo.local
|
||||
127.0.1.1 tj-3doo.cybafelo.local
|
||||
127.0.1.1 tj-3d-racing.cybafelo.local
|
||||
127.0.1.1 tj-api-v1.cybafelo.local
|
||||
127.0.1.1 tj-tools.cybafelo.local
|
||||
127.0.1.1 tj-gate.cybafelo.local
|
||||
127.0.1.1 tj-content.cybafelo.local
|
||||
127.0.1.1 tj-asset.cybafelo.local
|
||||
127.0.1.1 tj-port.cybafelo.local
|
||||
127.0.1.1 tj-app.cybafelo.local
|
||||
127.0.1.1 tj-api.cybafelo.local
|
||||
127.0.1.1 tj-cdn.cybafelo.local
|
||||
127.0.1.1 tj-mail.cybafelo.local
|
||||
127.0.1.1 tj-cron.cybafelo.local
|
||||
127.0.1.1 tj-preview.cybafelo.local
|
||||
127.0.1.1 tj-release.cybafelo.local
|
||||
127.0.1.1 tj-weltmeister.cybafelo.local
|
||||
>>>>>>> 56f9a0e9c814bc05cdd17da606e11bf3f3485499
|
||||
|
||||
# The following lines are desirable for IPv6 capable hosts
|
||||
::1 ip6-localhost ip6-loopback
|
||||
|
|
|
@ -0,0 +1,25 @@
|
|||
var config = {
|
||||
model: {
|
||||
connection: {
|
||||
//
|
||||
// default model connection
|
||||
default : 'connect/connect.mongoose.general',
|
||||
ticket : 'connect/connect.memcached',
|
||||
gamestate : 'connect/connect.memcached',
|
||||
job : 'connect/connect.memory',
|
||||
// event : 'connect/connect.mongoose.statistics',
|
||||
content_state : 'connect/connect.mongoose.statistics'
|
||||
},
|
||||
schema: {
|
||||
//
|
||||
// default schema
|
||||
default : 'connect/schema.mongoose',
|
||||
ticket : 'connect/schema.memcached',
|
||||
gamestate : 'connect/schema.memcached',
|
||||
job : 'connect/schema.memory'
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
if (!!module) { module.exports = exports = config; }
|
|
@ -0,0 +1,59 @@
|
|||
upstream 3d-pong {
|
||||
server 127.0.0.1:3101;
|
||||
}
|
||||
|
||||
upstream 3d-racing {
|
||||
server 127.0.0.1:3102;
|
||||
}
|
||||
|
||||
upstream mail {
|
||||
server 127.0.0.1:9024;
|
||||
}
|
||||
|
||||
upstream 3d-editor {
|
||||
server 127.0.0.1:3103;
|
||||
}
|
||||
|
||||
upstream api-v1 {
|
||||
server 127.0.0.1:3104;
|
||||
}
|
||||
|
||||
upstream tools {
|
||||
server 127.0.0.1:3109;
|
||||
}
|
||||
|
||||
upstream app {
|
||||
server 127.0.0.1:3110;
|
||||
}
|
||||
|
||||
upstream api {
|
||||
server 127.0.0.1:3111;
|
||||
}
|
||||
|
||||
upstream port {
|
||||
server 127.0.0.1:3114;
|
||||
}
|
||||
|
||||
upstream gamestate {
|
||||
server 127.0.0.1:3114;
|
||||
}
|
||||
|
||||
upstream gate {
|
||||
server 127.0.0.1:3115;
|
||||
}
|
||||
|
||||
upstream content {
|
||||
server 127.0.0.1:3115;
|
||||
}
|
||||
|
||||
upstream asset {
|
||||
server 127.0.0.1:3115;
|
||||
}
|
||||
|
||||
upstream cron {
|
||||
server 127.0.0.1:3116;
|
||||
}
|
||||
|
||||
upstream php {
|
||||
server 127.0.0.1:9001;
|
||||
}
|
|
@ -0,0 +1,105 @@
|
|||
user www-data;
|
||||
worker_processes 4;
|
||||
pid /run/nginx.pid;
|
||||
|
||||
events {
|
||||
worker_connections 768;
|
||||
# multi_accept on;
|
||||
}
|
||||
|
||||
http {
|
||||
|
||||
##
|
||||
# Basic Settings
|
||||
##
|
||||
|
||||
sendfile on;
|
||||
tcp_nopush on;
|
||||
tcp_nodelay on;
|
||||
keepalive_timeout 65;
|
||||
types_hash_max_size 2048;
|
||||
# server_tokens off;
|
||||
|
||||
# server_names_hash_bucket_size 64;
|
||||
# server_name_in_redirect off;
|
||||
|
||||
include /etc/nginx/mime.types;
|
||||
default_type application/octet-stream;
|
||||
|
||||
client_max_body_size 1024M;
|
||||
|
||||
##
|
||||
# Logging Settings
|
||||
##
|
||||
log_format custom_access '$request_method ($status) : $host$request_uri';
|
||||
access_log /var/log/nginx/access.log custom_access;
|
||||
|
||||
error_log /var/log/nginx/error.log;
|
||||
|
||||
##
|
||||
# Timeout Settings
|
||||
##
|
||||
|
||||
fastcgi_read_timeout 6000;
|
||||
proxy_read_timeout 6000;
|
||||
|
||||
##
|
||||
# Gzip Settings
|
||||
##
|
||||
|
||||
gzip on;
|
||||
gzip_disable "msie6";
|
||||
|
||||
gzip_vary on;
|
||||
gzip_proxied any;
|
||||
gzip_comp_level 2;
|
||||
gzip_buffers 16 8k;
|
||||
gzip_http_version 1.1;
|
||||
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
|
||||
|
||||
##
|
||||
# nginx-naxsi config
|
||||
##
|
||||
# Uncomment it if you installed nginx-naxsi
|
||||
##
|
||||
|
||||
#include /etc/nginx/naxsi_core.rules;
|
||||
|
||||
##
|
||||
# nginx-passenger config
|
||||
##
|
||||
# Uncomment it if you installed nginx-passenger
|
||||
##
|
||||
|
||||
#passenger_root /usr;
|
||||
#passenger_ruby /usr/bin/ruby;
|
||||
|
||||
##
|
||||
# Virtual Host Configs
|
||||
##
|
||||
|
||||
include /etc/nginx/conf.d/*.conf;
|
||||
include /etc/nginx/sites-enabled/*;
|
||||
}
|
||||
|
||||
|
||||
#mail {
|
||||
# # See sample authentication script at:
|
||||
# # http://wiki.nginx.org/ImapAuthenticateWithApachePhpScript
|
||||
#
|
||||
# # auth_http localhost/auth.php;
|
||||
# # pop3_capabilities "TOP" "USER";
|
||||
# # imap_capabilities "IMAP4rev1" "UIDPLUS";
|
||||
#
|
||||
# server {
|
||||
# listen localhost:110;
|
||||
# protocol pop3;
|
||||
# proxy on;
|
||||
# }
|
||||
#
|
||||
# server {
|
||||
# listen localhost:143;
|
||||
# protocol imap;
|
||||
# proxy on;
|
||||
# }
|
||||
#}
|
|
@ -0,0 +1,83 @@
|
|||
server {
|
||||
listen 80 default_server;
|
||||
listen [::]:80 default_server ipv6only=on;
|
||||
|
||||
server_name ~^(?<environment>.*?)-(?<app>.*?)\.(?<host_domain>.*);
|
||||
|
||||
root /usr/share/cybafelo/$app;
|
||||
|
||||
location ~ \.php$ {
|
||||
|
||||
if ($request_method = OPTIONS) {
|
||||
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-authorization";
|
||||
add_header Access-Control-Allow-Credentials true;
|
||||
return 200;
|
||||
}
|
||||
|
||||
add_header Access-Control-Allow-Origin $http_origin;
|
||||
add_header Access-Control-Allow-Credentials true;
|
||||
|
||||
fastcgi_pass php;
|
||||
fastcgi_index index.php;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
fastcgi_param SCRIPT_URL $request_uri;
|
||||
fastcgi_param SERVER_NAME $http_host;
|
||||
include fastcgi_params;
|
||||
}
|
||||
|
||||
location = / {
|
||||
if ($request_method = OPTIONS) {
|
||||
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-authorization";
|
||||
add_header Access-Control-Allow-Credentials true;
|
||||
return 200;
|
||||
}
|
||||
add_header Access-Control-Allow-Origin $http_origin;
|
||||
add_header Access-Control-Allow-Credentials true;
|
||||
try_files /index.html @node;
|
||||
}
|
||||
|
||||
location ~ {
|
||||
if ($request_method = OPTIONS) {
|
||||
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-authorization";
|
||||
add_header Access-Control-Allow-Credentials true;
|
||||
return 200;
|
||||
}
|
||||
add_header Access-Control-Allow-Origin $http_origin;
|
||||
add_header Access-Control-Allow-Credentials true;
|
||||
add_header X-Content-Type-Options "nosniff";
|
||||
try_files $uri dist/$uri @node;
|
||||
}
|
||||
|
||||
location @node {
|
||||
|
||||
add_header Access-Control-Allow-Credentials true;
|
||||
|
||||
# WebSocket support
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
|
||||
# Normal parameters
|
||||
proxy_pass_request_headers on;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-NginX-Proxy true;
|
||||
|
||||
# Set Environment, App, and Domain
|
||||
proxy_set_header X-Gamewheel-Env $environment;
|
||||
proxy_set_header X-Gamewheel-App $app;
|
||||
proxy_set_header X-Gamewheel-Host $host_domain;
|
||||
|
||||
# Pass Everything to our app
|
||||
proxy_pass http://$app;
|
||||
proxy_ssl_session_reuse off;
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_redirect off;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,91 @@
|
|||
##
|
||||
# You should look at the following URL's in order to grasp a solid understanding
|
||||
# of Nginx configuration files in order to fully unleash the power of Nginx.
|
||||
# https://www.nginx.com/resources/wiki/start/
|
||||
# https://www.nginx.com/resources/wiki/start/topics/tutorials/config_pitfalls/
|
||||
# https://wiki.debian.org/Nginx/DirectoryStructure
|
||||
#
|
||||
# In most cases, administrators will remove this file from sites-enabled/ and
|
||||
# leave it as reference inside of sites-available where it will continue to be
|
||||
# updated by the nginx packaging team.
|
||||
#
|
||||
# This file will automatically load configuration files provided by other
|
||||
# applications, such as Drupal or Wordpress. These applications will be made
|
||||
# available underneath a path with that package name, such as /drupal8.
|
||||
#
|
||||
# Please see /usr/share/doc/nginx-doc/examples/ for more detailed examples.
|
||||
##
|
||||
|
||||
# Default server configuration
|
||||
#
|
||||
server {
|
||||
listen 80 default_server;
|
||||
listen [::]:80 default_server;
|
||||
|
||||
# SSL configuration
|
||||
#
|
||||
# listen 443 ssl default_server;
|
||||
# listen [::]:443 ssl default_server;
|
||||
#
|
||||
# Note: You should disable gzip for SSL traffic.
|
||||
# See: https://bugs.debian.org/773332
|
||||
#
|
||||
# Read up on ssl_ciphers to ensure a secure configuration.
|
||||
# See: https://bugs.debian.org/765782
|
||||
#
|
||||
# Self signed certs generated by the ssl-cert package
|
||||
# Don't use them in a production server!
|
||||
#
|
||||
# include snippets/snakeoil.conf;
|
||||
|
||||
root /var/www/html;
|
||||
|
||||
# Add index.php to the list if you are using PHP
|
||||
index index.html index.htm index.nginx-debian.html;
|
||||
|
||||
server_name _;
|
||||
|
||||
location / {
|
||||
# First attempt to serve request as file, then
|
||||
# as directory, then fall back to displaying a 404.
|
||||
try_files $uri $uri/ =404;
|
||||
}
|
||||
|
||||
# pass PHP scripts to FastCGI server
|
||||
#
|
||||
#location ~ \.php$ {
|
||||
# include snippets/fastcgi-php.conf;
|
||||
#
|
||||
# # With php-fpm (or other unix sockets):
|
||||
# fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
|
||||
# # With php-cgi (or other tcp sockets):
|
||||
# fastcgi_pass 127.0.0.1:9000;
|
||||
#}
|
||||
|
||||
# deny access to .htaccess files, if Apache's document root
|
||||
# concurs with nginx's one
|
||||
#
|
||||
#location ~ /\.ht {
|
||||
# deny all;
|
||||
#}
|
||||
}
|
||||
|
||||
|
||||
# Virtual Host configuration for example.com
|
||||
#
|
||||
# You can move that to a different file under sites-available/ and symlink that
|
||||
# to sites-enabled/ to enable it.
|
||||
#
|
||||
#server {
|
||||
# listen 80;
|
||||
# listen [::]:80;
|
||||
#
|
||||
# server_name example.com;
|
||||
#
|
||||
# root /var/www/example.com;
|
||||
# index index.html;
|
||||
#
|
||||
# location / {
|
||||
# try_files $uri $uri/ =404;
|
||||
# }
|
||||
#}
|
|
@ -0,0 +1,123 @@
|
|||
-----BEGIN CERTIFICATE-----
|
||||
MIIFVDCCBDygAwIBAgIQIsyWkQe0NoNQqLjtNcpgbjANBgkqhkiG9w0BAQsFADCB
|
||||
kDELMAkGA1UEBhMCR0IxGzAZBgNVBAgTEkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4G
|
||||
A1UEBxMHU2FsZm9yZDEaMBgGA1UEChMRQ09NT0RPIENBIExpbWl0ZWQxNjA0BgNV
|
||||
BAMTLUNPTU9ETyBSU0EgRG9tYWluIFZhbGlkYXRpb24gU2VjdXJlIFNlcnZlciBD
|
||||
QTAeFw0xNjEwMjAwMDAwMDBaFw0xODEwMjEyMzU5NTlaMFwxITAfBgNVBAsTGERv
|
||||
bWFpbiBDb250cm9sIFZhbGlkYXRlZDEdMBsGA1UECxMUUG9zaXRpdmVTU0wgV2ls
|
||||
ZGNhcmQxGDAWBgNVBAMMDyouZ2FtZXdoZWVsLmNvbTCCASIwDQYJKoZIhvcNAQEB
|
||||
BQADggEPADCCAQoCggEBAMTjZQBWf5uyidrbWAujcAymY7144oxklA6D+0lREUph
|
||||
BVwME5973AI+Fqr6sJAXzycz0oN3WyIarywDLJnxyyiqt4kmAM7nSr9KE0BpJjj5
|
||||
ajyySIABrX7SGAGGHo8R5O46MAc9hotmXwy1CCt9Vt224QN/Upv/PJ/13Av+rsA2
|
||||
NPQfnhv/jVt/823ta3ImVLnGMigJM+BKHWmcawu8m/qqX46RiSQaXB9o9r5PtldC
|
||||
kZHM0VkoyJfvmkCwQ9Zc7Qo3etrPDtuUu4WQycw1DjQ2Ihx5IxiE4wHDUbrzW/4j
|
||||
k+BTVodRIArh5g8R1WhZmRpSdX9Pk6/qymQEvg2r8ecCAwEAAaOCAdswggHXMB8G
|
||||
A1UdIwQYMBaAFJCvajqUWgvYk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lI2E8U1/6c87fubSwjQKBgCRu
|
||||
RLJ/xFjYjDvJvTchN0dudrJ1LunVCTZDJXVxQSJBYbFkGGb7srUJD82GuO4gjBwG
|
||||
KJlXZsYa/McTUue7F0cY7+nvThyWuUoL8ujN/c8/wYRLTk775qmCTf+RmYa5mbqe
|
||||
Zt1S6CGvPkBc295a0rYCk6fgsYvQdHGMk9h9cCHbAoGAIJaceplG99r1R2gA1PH0
|
||||
EccY0SJpEYnpjgRTTSnQZq4Z00jd17bsxN/4iKCvPK4JXje4MnJix6NAHbUMT0Pg
|
||||
kg0aqEy4qS17dsuFAKMCWWfGkNtKV8cfAjtHTNDUNL+ZriUXcDWYKcUMWDJCuQao
|
||||
xibQQXt204Ba4Ti834RKQso=
|
||||
-----END PRIVATE KEY-----
|
|
@ -0,0 +1,8 @@
|
|||
ssl_certificate ssl/cybafelo.local.crt;
|
||||
ssl_certificate_key ssl/cybafelo.local.key;
|
||||
ssl_session_timeout 5m;
|
||||
## Don't use SSL v3 because of POODLE vulnerability
|
||||
# ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2;
|
||||
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
|
||||
ssl_ciphers "HIGH:!aNULL:!MD5 or HIGH:!aNULL:!MD5:!3DES";
|
||||
ssl_prefer_server_ciphers on;
|
Binary file not shown.
After Width: | Height: | Size: 242 B |
Binary file not shown.
After Width: | Height: | Size: 168 B |
119
secure.js
119
secure.js
|
@ -24,6 +24,7 @@ var secure = {
|
|||
debug: true,
|
||||
ignoreTLS: true
|
||||
},
|
||||
<<<<<<< HEAD
|
||||
mongodb: {
|
||||
host: 'mongodb://127.0.0.1',
|
||||
db: 'cybafelo',
|
||||
|
@ -116,6 +117,10 @@ var secure = {
|
|||
ignoreTLS: true
|
||||
},
|
||||
sessionKey: 'iJswK29klj20Jos02mJK8ud9239j23'
|
||||
=======
|
||||
sessionKey: 'iJswK29klj20Jos02mJK8ud9239j23',
|
||||
customCodePath: '/usr/share/cybafelo/custom-code'
|
||||
>>>>>>> 56f9a0e9c814bc05cdd17da606e11bf3f3485499
|
||||
},
|
||||
tools: {
|
||||
port: 3109,
|
||||
|
@ -146,30 +151,16 @@ var secure = {
|
|||
port: 3111,
|
||||
debugPort: 3211,
|
||||
liveReloadPort: 3411,
|
||||
mongodb: {
|
||||
host: 'mongodb://127.0.0.1',
|
||||
db: 'apidev',
|
||||
port: 27017,
|
||||
shardPort: 27018,
|
||||
options: {
|
||||
db: {
|
||||
native_parser: true
|
||||
},
|
||||
server: {
|
||||
poolSize: 5,
|
||||
keepAlive: 120
|
||||
},
|
||||
user: '',
|
||||
pass: '',
|
||||
autoIndex: false
|
||||
}
|
||||
},
|
||||
uploadPath : 'uploads',
|
||||
// mailer: {
|
||||
// host: "smtp.office365.com",
|
||||
// port: 587,
|
||||
// auth: {
|
||||
<<<<<<< HEAD
|
||||
// user: "admin@cybafelo.com",
|
||||
=======
|
||||
// user: "admin@cybafelo.local",
|
||||
>>>>>>> 56f9a0e9c814bc05cdd17da606e11bf3f3485499
|
||||
// pass: "Toypro42!"
|
||||
// },
|
||||
// secureConnection: false,
|
||||
|
@ -178,19 +169,25 @@ var secure = {
|
|||
// rejectUnauthorized: false
|
||||
// },
|
||||
// emails: {
|
||||
<<<<<<< HEAD
|
||||
// founder: "evgeni@cybafelo.com",
|
||||
// support: "support@cybafelo.com"
|
||||
=======
|
||||
// founder: "evgeni@cybafelo.local",
|
||||
// support: "support@cybafelo.local"
|
||||
>>>>>>> 56f9a0e9c814bc05cdd17da606e11bf3f3485499
|
||||
// }
|
||||
// },
|
||||
mailer: {
|
||||
host: 'localhost',
|
||||
port: 9025,
|
||||
port: 25,
|
||||
secure: false,
|
||||
debug: true,
|
||||
ignoreTLS: true
|
||||
},
|
||||
sessionKey: 'iJswK29klj20Jos02mJK8ud9239j23'
|
||||
},
|
||||
<<<<<<< HEAD
|
||||
api_runtime: {
|
||||
port: 3112,
|
||||
debugPort: 3212,
|
||||
|
@ -229,6 +226,8 @@ var secure = {
|
|||
db: 'statistic'
|
||||
}
|
||||
},
|
||||
=======
|
||||
>>>>>>> 56f9a0e9c814bc05cdd17da606e11bf3f3485499
|
||||
port: {
|
||||
port: 3114,
|
||||
debugPort: 3214
|
||||
|
@ -236,6 +235,88 @@ var secure = {
|
|||
gate: {
|
||||
port: 3115,
|
||||
debugPort: 3215
|
||||
},
|
||||
cron: {
|
||||
port: 3116,
|
||||
debugPort: 3216,
|
||||
apiUser : 'tj@cybafelo.local',
|
||||
apiPassword : 'test12345'
|
||||
},
|
||||
db : {
|
||||
mongo : {
|
||||
analytics : {
|
||||
host: 'mongodb://127.0.0.1',
|
||||
db: 'analyticsDev',
|
||||
port: 27017,
|
||||
shardPort: 27018,
|
||||
options: {
|
||||
db: {
|
||||
native_parser: true
|
||||
},
|
||||
server: {
|
||||
poolSize: 5,
|
||||
keepAlive: 120
|
||||
},
|
||||
user: '',
|
||||
pass: '',
|
||||
autoIndex: false
|
||||
}
|
||||
},
|
||||
statistics : {
|
||||
host: 'mongodb://127.0.0.1',
|
||||
db: 'statistic'
|
||||
},
|
||||
general : {
|
||||
host: 'mongodb://127.0.0.1',
|
||||
db: 'releaseTJ',
|
||||
port: 27017,
|
||||
shardPort: 27018,
|
||||
options: {
|
||||
db: {
|
||||
native_parser: true
|
||||
},
|
||||
server: {
|
||||
poolSize: 5,
|
||||
keepAlive: 120
|
||||
},
|
||||
user: '',
|
||||
pass: '',
|
||||
autoIndex: false
|
||||
}
|
||||
},
|
||||
original : {
|
||||
host: 'mongodb://127.0.0.1',
|
||||
db: 'cybafelo',
|
||||
port: 27017,
|
||||
shardPort: 27018,
|
||||
options: {
|
||||
db: {
|
||||
native_parser: true
|
||||
},
|
||||
server: {
|
||||
poolSize: 5,
|
||||
keepAlive: 120
|
||||
},
|
||||
user: '',
|
||||
pass: '',
|
||||
autoIndex: false
|
||||
}
|
||||
}
|
||||
},
|
||||
mysql : {
|
||||
statistics : {
|
||||
host : '127.0.0.1',
|
||||
user : 'root',
|
||||
password : '',
|
||||
database : 'gw_core'
|
||||
}
|
||||
},
|
||||
memcached : {
|
||||
statistics : {
|
||||
host : '127.0.0.1',
|
||||
port : 11211
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
|
10
start
10
start
|
@ -1,8 +1,18 @@
|
|||
#!/bin/bash
|
||||
cd /usr/share/cybafelo
|
||||
<<<<<<< HEAD
|
||||
./start_editor_v1
|
||||
./start_editor_v2
|
||||
./start_editor_v3
|
||||
./start_pong
|
||||
./start_racing
|
||||
./start_tools
|
||||
=======
|
||||
#./start_editor
|
||||
./start_api-v1.6
|
||||
#./start_app
|
||||
#./start_gate
|
||||
#./start_port
|
||||
#./start_mail
|
||||
#./start_cron
|
||||
>>>>>>> 56f9a0e9c814bc05cdd17da606e11bf3f3485499
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
cd /usr/share/cybafelo/api
|
||||
pm2 start bin/start --node-args="--inspect=3211" --name api
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
cd /usr/share/cybafelo/api-v1
|
||||
pm2 start bin/start --node-args="--debug=3204" --name "api-v1.6"
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
cd /usr/share/cybafelo/app
|
||||
pm2 start bin/start --node-args="--inspect=3210" --name app
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
cd /usr/share/gamewheel/cron
|
||||
pm2 start bin/start --node-args="--inspect=3216" --name cron
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
cd /usr/share/cybafelo/3d-editor
|
||||
pm2 start server.js --node-args="--max-old-space-size=16000 --inspect=3203" --name 3d-editor
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
cd /usr/share/cybafelo/gate
|
||||
pm2 start bin/start --node-args="--inspect=3215" --name gate
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
cd /usr/share/cybafelo/gate
|
||||
pm2 start capto -- run
|
|
@ -1,5 +1,12 @@
|
|||
#!/bin/bash
|
||||
<<<<<<< HEAD
|
||||
cd /usr/share/cybafelo/api-v1.6
|
||||
pm2 start bin/start --node-args="--max-old-space-size=16000 --debug=3204" --name api-v1.6
|
||||
cd /usr/share/cybafelo/3d-pong
|
||||
pm2 start server.js --node-args="--max-old-space-size=16000 --debug=3201" --name 3d-pong
|
||||
=======
|
||||
cd /usr/share/cybafelo/api-v1
|
||||
pm2 start bin/start --node-args="--max-old-space-size=16000 --inspect=3204" --name api-v1
|
||||
cd /usr/share/cybafelo/3d-pong
|
||||
pm2 start server.js --node-args="--max-old-space-size=16000 --inspect=3201" --name 3d-pong
|
||||
>>>>>>> 56f9a0e9c814bc05cdd17da606e11bf3f3485499
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
cd /usr/share/cybafelo/port
|
||||
pm2 start bin/start --node-args="--inspect=3214" --name port
|
|
@ -1,3 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
#cd /usr/share/cybafelo/3d-racing-server
|
||||
<<<<<<< HEAD
|
||||
#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 --inspect=3202" --name 3d-racing-server
|
||||
>>>>>>> 56f9a0e9c814bc05cdd17da606e11bf3f3485499
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
cd /usr/share/cybafelo/tools
|
||||
<<<<<<< HEAD
|
||||
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 --inspect=3209" --name tools
|
||||
>>>>>>> 56f9a0e9c814bc05cdd17da606e11bf3f3485499
|
||||
|
|
|
@ -0,0 +1,14 @@
|
|||
#!/bin/bash
|
||||
|
||||
|
||||
#for package in $()
|
||||
for dir in /usr/share/cybafelo/*/
|
||||
do
|
||||
dir_short_name=${dir%*/}
|
||||
dir_short_name=${dir_short_name##*/}
|
||||
|
||||
if [ -d "$dir/.git" ]; then
|
||||
cd $dir
|
||||
echo `echo "$dir_short_name: " && git fetch && git status | grep "\(clean\|Untracked files\|Changes not staged\|ahead.*commit\|behind.*commit\)" | sed "s/^.*\(clean\|Untracked files\|Changes not staged\|ahead.*commit\|behind.*commit\).*/\l\1 |/" | grep --color=always "\(changes not staged\|ahead.*commit\|clean\|untracked files\|behind.*commit\)"`
|
||||
fi
|
||||
done
|
|
@ -0,0 +1,15 @@
|
|||
#!/bin/bash
|
||||
|
||||
#for package in $()
|
||||
for dir in /usr/share/cybafelo/*/
|
||||
do
|
||||
dir_short_name=${dir%*/}
|
||||
dir_short_name=${dir_short_name##*/}
|
||||
|
||||
if [ -d "$dir/.git" ]; then
|
||||
echo "===========================starting============================ $dir_short_name"
|
||||
cd $dir
|
||||
git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done
|
||||
echo "=============================done=============================="
|
||||
fi
|
||||
done
|
Binary file not shown.
After Width: | Height: | Size: 9.1 KiB |
Binary file not shown.
Binary file not shown.
After Width: | Height: | Size: 2.6 KiB |
|
@ -0,0 +1,16 @@
|
|||
#!/bin/bash
|
||||
|
||||
#for package in $()
|
||||
for dir in /usr/share/cybafelo/*/
|
||||
do
|
||||
dir_short_name=${dir%*/}
|
||||
dir_short_name=${dir_short_name##*/}
|
||||
|
||||
if [ -d "$dir/.git" ]; then
|
||||
echo "===========================starting============================ $dir_short_name"
|
||||
cd $dir
|
||||
git branch
|
||||
git pull
|
||||
echo "=============================done=============================="
|
||||
fi
|
||||
done
|
|
@ -30,7 +30,10 @@ set statusline="%f%m%r%h%w [%Y] [0x%02.2B]%< %F%=%4v,%4l %3p%% of %L"
|
|||
|
||||
set number
|
||||
set nowrap
|
||||
<<<<<<< HEAD
|
||||
set history=1000000
|
||||
=======
|
||||
>>>>>>> 56f9a0e9c814bc05cdd17da606e11bf3f3485499
|
||||
com! FormatJSON %!python -m json.tool
|
||||
nmap <F5> dd\|i<C-R>=join([" -- Theunis J. Botha <tj.botha@plista.com> ", strftime("%a, %d %b %Y %H:%M:%S %z")], "")<CR><CR><Esc>
|
||||
imap <F5> <ESC>dd\|i<C-R>=join([" -- Theunis J. Botha <tj.botha@plista.com> ", strftime("%a, %d %b %Y %H:%M:%S %z")], "")<CR><CR>
|
||||
|
|
Loading…
Reference in New Issue