r3-config

beta.r3js.org
Theunis Johannes Botha 2018-04-12 10:58:35 +02:00
parent 90ade90510
commit adfa4329f0
44 changed files with 46 additions and 13398 deletions

View File

@ -1,24 +1,10 @@
#Configuration Package
This is a central repository which aims to be a replacement
for all configuration packages.
#R3 - Configuration Package
Every configuration lies in a different branch.
This package contains all R3 configuration variables which should be unique to each deployment of R3
Each branch corresponds to a server configuration, ex. tj-dev is for
TJ's dev machine.
config.js contains the client password
gw-3d should be deployed on the gw-3d server
secure.js should only be included 'server' side and contains the server password.
if we have a gw-3d-beta server, this branch would be called gw-3d-beta
For updates to the API to be successful (saving, deleting of components and uploads), these passwords have to match.
and so on.
Secure (Sensitive configuration options) go into secure.js.
public configuration options go into config.js.
config.js is linked to from every other package via symbolic link.
When config.js is required server side, it is automatically merged
with secure.js in order to produce a global server side configuration,
whilst only exposing config.js public to client side.

View File

@ -2,17 +2,12 @@ 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 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 r3='cd /usr/share/cybafelo/r3'
alias p='cd /usr/share/cybafelo/r3-portal'
alias e='cd /usr/share/cybafelo/r3-3ditor'
alias a='cd /usr/share/cybafelo/r3-api'
alias logs='cd /usr/share/cybafelo && ./logs'
alias m='pm2 monit'
alias list='pm2 list'
function r() {
/usr/share/cybafelo/restart "$@"
}

12358
bash_history

File diff suppressed because it is too large Load Diff

115
bashrc
View File

@ -1,115 +0,0 @@
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options
HISTCONTROL=ignoreboth
# append to the history file, don't overwrite it
shopt -s histappend
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=1000000
HISTFILESIZE=200000
# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize
# If set, the pattern "**" used in a pathname expansion context will
# match all files and zero or more directories and subdirectories.
#shopt -s globstar
# make less more friendly for non-text input files, see lesspipe(1)
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
# set variable identifying the chroot you work in (used in the prompt below)
if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then
debian_chroot=$(cat /etc/debian_chroot)
fi
# set a fancy prompt (non-color, unless we know we "want" color)
case "$TERM" in
xterm-color) color_prompt=yes;;
esac
# uncomment for a colored prompt, if the terminal has the capability; turned
# off by default to not distract the user: the focus in a terminal window
# should be on the output of commands, not on the prompt
force_color_prompt=yes
if [ -n "$force_color_prompt" ]; then
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
# We have color support; assume it's compliant with Ecma-48
# (ISO/IEC-6429). (Lack of such support is extremely rare, and such
# a case would tend to support setf rather than setaf.)
color_prompt=yes
else
color_prompt=
fi
fi
GIT_PS1_SHOWDIRTYSTATE=true
GIT_PS1_SHOWUNTRACKEDFILES=true
if [ "$color_prompt" = yes ]; then
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\][\D{%d}] \A\[\033[1;31m\] \u@\[\033[01;32m\]-=<yb4f310:\w>\[\033[00m\]\[\033[0;33m\]$(__git_ps1)\[\033[00m\] \$ '
else
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\][\D{%d}] \A\[\033[1;31m\] \u@\[\033[01;32m\]-=<yb4f310:\w>\[\033[00m\]\[\033[0;33m\]$(__git_ps1)\[\033[00m\] \$ '
fi
unset color_prompt force_color_prompt
# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)
PS1='${debian_chroot:+($debian_chroot)}\[\033[38;5;34m\]-\[\033[38;5;35m\]=\[\033[38;5;36m\]<\[\033[38;5;37m\]y\[\033[38;5;38m\]b\[\033[38;5;39m\]4\[\033[38;5;40m\]f\[\033[38;5;42m\]3\[\033[38;5;43m\]1\[\033[38;5;87m\]0\[\033[38;5;34m\]\w\[\033[38;5;199m\]/\[\033[38;5;104m\]$(__git_ps1 "(%s)\[\033[38;5;199m\]/")\[\033[38;5;117m\]'
;;
*)
;;
esac
# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls='ls -l -a --color=auto'
#alias dir='dir --color=auto'
#alias vdir='vdir --color=auto'
alias grep='grep --color=auto -n'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
fi
# some more ls aliases
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
alias mysql='mysql -A'
# Add an "alert" alias for long running commands. Use like so:
# sleep 10; alert
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
alias composer='php /usr/local/bin/composer.phar'
# Alias definitions.
# You may want to put all your additions into a separate file like
# ~/.bash_aliases, instead of adding them here directly.
# See /usr/share/doc/bash-doc/examples in the bash-doc package.
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
. /etc/bash_completion
fi
export PATH=`pwd`/depot_tools:"$PATH"

View File

@ -1,69 +0,0 @@
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/>&nbsp;<b>3doo Movie Player App</b>&nbsp;<br/>using the following link<br/> to watch <b>your free movie</b>',
'<b>Want more?</b><br/>&nbsp;Download our<br/>&nbsp;<b>3doo Movie Player App.</b>',
'<b>Want even more fun?</b><br/>&nbsp;Invite your friends&nbsp;<br/><b>AND BEAT \'EM!</b>',
'<b>Like to win?</b><br/>&nbsp;Challenge more friends&nbsp;<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;

View File

@ -2,75 +2,33 @@ var environment = {
path : '/usr/share/cybafelo',
protocol : 'http',
environment : 'tj',
domain : 'cybafelo.local'
domain : 'cybafelo.local',
remoteDomain : 'cybafelo.com'
};
var protocol = environment.protocol;
var user = environment.environment;
var domain = environment.domain;
var protocol = environment.protocol;
var user = environment.environment;
var domain = environment.domain;
var remoteDomain = environment.remoteDomain;
var config = {
vr_pong: {
url: protocol + '://' + user + '-3d-pong.' + domain
},
vr_racer: {
url: protocol + '://' + user + '-3d-racing.' + domain
},
editor: {
url: protocol + '://' + user + '-3d-editor.' + domain,
url: protocol + '://' + user + '-r3-3ditor.' + domain,
default: {
platform: 'cybafelo',
account: 'root',
subAccount: 'root',
nameOfTheGame: 'test'
package: 'test'
}
},
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,
default: {
platform: 'cybafelo',
account: 'root',
subAccount: 'root'
}
},
app: {
url: protocol + '://' + user + '-app.' + domain
},
preview: {
url: protocol + '://' + user + '-preview.' + domain
},
api: {
url: protocol + '://' + user + '-api.' + domain
url: protocol + '://' + user + '-r3-api.' + domain,
remoteUrl: protocol + '://' + user + '-r3-api.' + remoteDomain,
uploadPath: '/uploads',
clientPassword: '"kent sent me" motherfucker!'
},
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
},
environment: {
mode: 'development'
portal: {
url: protocol + '://' + user + '-r3-portal.' + domain
},
db: {}
};
@ -80,8 +38,6 @@ if (typeof module !== 'undefined') {
if (typeof require !== 'undefined') {
var _ = require('lodash');
_.merge(config, require('./secure'));
_.merge(config, require('./connection'));
_.merge(config, require('./model'));
}
module.exports = config;

View File

@ -1,20 +0,0 @@
var config = {
connection: {
model: {
//
// default model connection
default: 'connect/connect.mongoose'
}
},
schema: {
model: {
//
// default schema
default: 'connect/schema.mongoose'
}
}
};
if (!!module) { module.exports = config; }

15
dump
View File

@ -1,15 +0,0 @@
#!/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.

17
hosts
View File

@ -1,17 +0,0 @@
127.0.0.1 localhost
127.0.1.1 cfo_plista
127.0.1.1 cfo_plista.cybafelo.local
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
192.168.44.185 kibana.sirius.internal
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

View File

@ -1,4 +0,0 @@
"\e[A": history-search-backward
"\e[B": history-search-forward
"\e[1;5C": forward-word
"\e[1;5D": backward-word

View File

@ -1,25 +0,0 @@
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; }

View File

@ -1,59 +0,0 @@
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;
}

View File

@ -1,105 +0,0 @@
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;
# }
#}

View File

@ -1,91 +0,0 @@
##
# 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;
# }
#}

View File

@ -1,4 +1,16 @@
# Define our node ports
upstream r3-api {
server 127.0.0.1:3104;
}
upstream php {
server 127.0.0.1:9001;
}
# Now define our sites
server {
#listen 443 ssl default_server;
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
@ -70,9 +82,9 @@ server {
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;
proxy_set_header X-R3-Env $environment;
proxy_set_header X-R3-App $app;
proxy_set_header X-R3-Host $host_domain;
# Pass Everything to our app
proxy_pass http://$app;
@ -81,3 +93,4 @@ server {
proxy_redirect off;
}
}

View File

@ -1,123 +0,0 @@
-----BEGIN CERTIFICATE-----
MIIFVDCCBDygAwIBAgIQIsyWkQe0NoNQqLjtNcpgbjANBgkqhkiG9w0BAQsFADCB
kDELMAkGA1UEBhMCR0IxGzAZBgNVBAgTEkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4G
A1UEBxMHU2FsZm9yZDEaMBgGA1UEChMRQ09NT0RPIENBIExpbWl0ZWQxNjA0BgNV
BAMTLUNPTU9ETyBSU0EgRG9tYWluIFZhbGlkYXRpb24gU2VjdXJlIFNlcnZlciBD
QTAeFw0xNjEwMjAwMDAwMDBaFw0xODEwMjEyMzU5NTlaMFwxITAfBgNVBAsTGERv
bWFpbiBDb250cm9sIFZhbGlkYXRlZDEdMBsGA1UECxMUUG9zaXRpdmVTU0wgV2ls
ZGNhcmQxGDAWBgNVBAMMDyouZ2FtZXdoZWVsLmNvbTCCASIwDQYJKoZIhvcNAQEB
BQADggEPADCCAQoCggEBAMTjZQBWf5uyidrbWAujcAymY7144oxklA6D+0lREUph
BVwME5973AI+Fqr6sJAXzycz0oN3WyIarywDLJnxyyiqt4km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RIVATE KEY-----

View File

@ -1,8 +0,0 @@
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;

View File

@ -1,32 +0,0 @@
server {
listen 80;
server_name pong.cybafelo.local pong-debug.cybafelo.local;
root /srv/cybafelo.local/vr_pong;
index index.html;
access_log /var/log/nginx/3d-editor.cybafelo.local.access.log;
error_log /var/log/nginx/3d-editor.cybafelo.local.error.log;
add_header Access-Control-Allow-Origin *;
location / {
try_files $uri $uri/ @node;
}
location @node {
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;
proxy_pass http://127.0.0.1:3101;
proxy_ssl_session_reuse off;
proxy_set_header Host $http_host;
proxy_redirect off;
proxy_read_timeout 99999s;
proxy_connect_timeout 99999s;
proxy_send_timeout 99999s;
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 242 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 168 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 245 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 168 B

138
secure.js
View File

@ -1,22 +1,13 @@
var secure = {
vr_pong: {
port: 3101,
debugPort: 3201
},
vr_racer: {
port: 3102,
debugPort: 3202
},
editor: {
port: 3103,
debugPort: 3203,
cluster: false
},
api16: {
api: {
port: 3104,
debugPort: 3204,
cluster: false,
cors: false,
mailer: {
host: 'localhost',
port: 9025,
@ -25,120 +16,11 @@ var secure = {
ignoreTLS: true
},
sessionKey: 'iJswK29klj20Jos02mJK8ud9239j23',
customCodePath: '/usr/share/cybafelo/custom-code'
},
tools: {
port: 3109,
debugPort: 3209,
liveReloadPort: 3409,
mysqlUserExport: {
host: "127.0.0.1",
port: 3306,
user: "root",
password: "",
database: "gw_core"
},
mongoUserImport: {
host: "127.0.0.1",
port: 27017,
options: {
user: '',
pass: ''
}
}
},
app: {
port: 3110,
debugPort: 3210,
liveReloadPort: 3410
},
api: {
port: 3111,
debugPort: 3211,
liveReloadPort: 3411,
uploadPath : 'uploads',
// mailer: {
// host: "smtp.office365.com",
// port: 587,
// auth: {
// user: "admin@cybafelo.local",
// pass: "Toypro42!"
// },
// secureConnection: false,
// tls: {
// ciphers: "SSLv3",
// rejectUnauthorized: false
// },
// emails: {
// founder: "evgeni@cybafelo.local",
// support: "support@cybafelo.local"
// }
// },
mailer: {
host: 'localhost',
port: 25,
secure: false,
debug: true,
ignoreTLS: true
},
sessionKey: 'iJswK29klj20Jos02mJK8ud9239j23'
},
port: {
port: 3114,
debugPort: 3214
},
gate: {
port: 3115,
debugPort: 3215
},
cron: {
port: 3116,
debugPort: 3216,
apiUser : 'tj@cybafelo.local',
apiPassword : 'test12345'
customCodePath: '/usr/share/cybafelo/r3-custom-code',
serverPassword: '"kent sent me" motherfucker!'
},
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',
@ -157,20 +39,6 @@ var secure = {
autoIndex: false
}
}
},
mysql : {
statistics : {
host : '127.0.0.1',
user : 'root',
password : '',
database : 'gw_core'
}
},
memcached : {
statistics : {
host : '127.0.0.1',
port : 11211
}
}
}
};

2
start
View File

@ -1,4 +1,4 @@
#!/bin/bash
cd /usr/share/cybafelo
./start_api-v1.6
./start_r3_api

View File

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

View File

@ -1,3 +0,0 @@
#!/bin/bash
cd /usr/share/cybafelo/api-v1
pm2 start bin/start --node-args="--debug=3204" --name "api-v1.6"

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,19 +0,0 @@
#!/bin/bash
<<<<<<< HEAD
<<<<<<< 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
=======
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

View File

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

3
start_r3_api Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
cd /usr/share/cybafelo/r3-api
pm2 start bin/start --node-args="--inspect=3204" --name "r3-api"

View File

@ -1,11 +0,0 @@
#!/usr/bin/env bash
#cd /usr/share/cybafelo/3d-racing-server
<<<<<<< HEAD
<<<<<<< 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
=======
#pm2 start app.js --node-args="--max-old-space-size=16000 --inspect=3202" --name 3d-racing-server
>>>>>>> 56f9a0e9c814bc05cdd17da606e11bf3f3485499

View File

@ -1,11 +0,0 @@
#!/usr/bin/env bash
cd /usr/share/cybafelo/tools
<<<<<<< HEAD
<<<<<<< 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
=======
pm2 start server.js --node-args="--max-old-space-size=16000 --inspect=3209" --name tools
>>>>>>> 56f9a0e9c814bc05cdd17da606e11bf3f3485499

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.1 KiB

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.8 KiB

View File

@ -1,39 +0,0 @@
nmap <silent> <A-Up> :wincmd k<CR>
nmap <silent> <A-Down> :wincmd j<CR>
nmap <silent> <A-Left> :wincmd h<CR>
nmap <silent> <A-Right> :wincmd l<CR>
nnoremap <C-W> :call MaximizeToggle()<CR>
nnoremap <C-W> :call MaximizeToggle()<CR>
"map <S-Up> <C-w>_
"map <S-Down> <C-w>=
"nnoremap <C-W><C-O> :call MaximizeToggle()<CR>
function! MaximizeToggle()
if exists("s:maximize_session")
exec "source " . s:maximize_session
call delete(s:maximize_session)
unlet s:maximize_session
let &hidden=s:maximize_hidden_save
unlet s:maximize_hidden_save
else
let s:maximize_hidden_save = &hidden
let s:maximize_session = tempname()
set hidden
exec "mksession! " . s:maximize_session
only
endif
endfunction
set modeline
set ls=2
set statusline="%f%m%r%h%w [%Y] [0x%02.2B]%< %F%=%4v,%4l %3p%% of %L"
set number
set nowrap
set history=1000000
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>
syntax on
set encoding=utf-8
set background=dark