getting pong ready
parent
80085dd37f
commit
eeb4a74380
|
@ -1,6 +1,5 @@
|
|||
var config = {
|
||||
vr_pong: {
|
||||
port: 3101,
|
||||
url: "http://pong.gamewheel.local"
|
||||
},
|
||||
vr_racer: {
|
||||
|
@ -11,7 +10,8 @@ var config = {
|
|||
default: {
|
||||
platform: 'gamewheel',
|
||||
account: 'root',
|
||||
subAccount: 'root'
|
||||
subAccount: 'root',
|
||||
nameOfTheGame: 'test'
|
||||
},
|
||||
uploadPath: '/uploads'
|
||||
},
|
||||
|
|
|
@ -0,0 +1,34 @@
|
|||
server {
|
||||
listen 80;
|
||||
listen 443 ssl;
|
||||
|
||||
server_name dev-core.gamewheel.local;
|
||||
|
||||
root /srv/gamewheel.local/dev-core;
|
||||
index index.php;
|
||||
|
||||
access_log /var/log/nginx/dev-core.gamewheel.local.access.log;
|
||||
error_log /var/log/nginx/dev-core.gamewheel.local.error.log;
|
||||
|
||||
ssl_certificate /etc/ssl/certs/ssl-cert-snakeoil.pem;
|
||||
ssl_certificate_key /etc/ssl/private/ssl-cert-snakeoil.key;
|
||||
ssl_session_timeout 5m;
|
||||
ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2;
|
||||
ssl_ciphers "HIGH:!aNULL:!MD5 or HIGH:!aNULL:!MD5:!3DES";
|
||||
ssl_prefer_server_ciphers on;
|
||||
|
||||
add_header Access-Control-Allow-Origin '*';
|
||||
|
||||
location / {
|
||||
autoindex on;
|
||||
try_files $uri $uri/ /index.php?$args;
|
||||
}
|
||||
|
||||
location ~ \.*.php$ {
|
||||
include fastcgi_params;
|
||||
fastcgi_split_path_info ^(.+\.php)(.*)$;
|
||||
fastcgi_pass 127.0.0.1:9001;
|
||||
fastcgi_intercept_errors on;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,15 @@
|
|||
server {
|
||||
listen 80;
|
||||
|
||||
server_name games.gamewheel.local;
|
||||
|
||||
root /srv/gamewheel.local/games;
|
||||
index index.html index.htm;
|
||||
|
||||
add_header Access-Control-Allow-Origin "$http_origin";
|
||||
|
||||
location / {
|
||||
autoindex on;
|
||||
try_files $uri $uri/ =404;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
server {
|
||||
listen 80;
|
||||
# listen 443 ssl;
|
||||
# Replace here with proper server FQDN
|
||||
server_name masker.gamewheel.local;
|
||||
|
||||
# Replace here with proper logs paths
|
||||
access_log /var/log/nginx/masker.gamewheel.local.access.log;
|
||||
error_log /var/log/nginx/masker.gamewheel.local.error.log;
|
||||
|
||||
# Replace here with proper certificates paths
|
||||
# ssl_certificate /etc/ssl/certs/ssl-cert-snakeoil.pem;
|
||||
# ssl_certificate_key /etc/ssl/private/ssl-cert-snakeoil.key;
|
||||
|
||||
#ssl_session_timeout 5m;
|
||||
#ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2;
|
||||
#ssl_ciphers "HIGH:!aNULL:!MD5 or HIGH:!aNULL:!MD5:!3DES";
|
||||
#ssl_prefer_server_ciphers on;
|
||||
|
||||
# Replace here with proper allowed origins
|
||||
# add_header Access-Control-Allow-Origin "http://app.gamewheel.local";
|
||||
# add_header Access-Control-Allow-Credentials true;
|
||||
add_header Access-Control-Allow-Methods 'HEAD, GET, POST, PUT, DELETE, OPTIONS';
|
||||
add_header Access-Control-Allow-Headers 'origin, x-requested-with, content-type, accept, authorization, Access-Control-Request-Headers, Access-Control-Request-Method, x-gw-api-rt-key, x-gw-api-rt-token';
|
||||
|
||||
location / {
|
||||
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;
|
||||
# Replace here with proper host/port
|
||||
proxy_pass http://127.0.0.1:3300;
|
||||
proxy_ssl_session_reuse off;
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_redirect off;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,38 @@
|
|||
server {
|
||||
listen 80;
|
||||
listen 443 ssl;
|
||||
|
||||
server_name pong.gamewheel.local pong-debug.gamewheel.local;
|
||||
|
||||
root /usr/share/gamewheel/vr_pong/;
|
||||
index index.html;
|
||||
|
||||
access_log /var/log/nginx/pong.gamewheel.local.access.log;
|
||||
error_log /var/log/nginx/pong.gamewheel.local.error.log;
|
||||
|
||||
ssl_certificate /etc/ssl/certs/ssl-cert-snakeoil.pem;
|
||||
ssl_certificate_key /etc/ssl/private/ssl-cert-snakeoil.key;
|
||||
ssl_session_timeout 5m;
|
||||
ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2;
|
||||
ssl_ciphers "HIGH:!aNULL:!MD5 or HIGH:!aNULL:!MD5:!3DES";
|
||||
ssl_prefer_server_ciphers on;
|
||||
|
||||
add_header Access-Control-Allow-Origin '*';
|
||||
|
||||
location / {
|
||||
add_header Access-Control-Allow-Origin $http_origin;
|
||||
autoindex on;
|
||||
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;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,34 @@
|
|||
server {
|
||||
listen 80;
|
||||
listen 443 ssl;
|
||||
|
||||
server_name racer.gamewheel.local racer-debug.gamewheel.local;
|
||||
|
||||
root /srv/gamewheel.local/racer;
|
||||
index index.html;
|
||||
|
||||
access_log /var/log/nginx/racer.gamewheel.local.access.log;
|
||||
error_log /var/log/nginx/racer.gamewheel.local.error.log;
|
||||
|
||||
ssl_certificate /etc/ssl/certs/ssl-cert-snakeoil.pem;
|
||||
ssl_certificate_key /etc/ssl/private/ssl-cert-snakeoil.key;
|
||||
ssl_session_timeout 5m;
|
||||
ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2;
|
||||
ssl_ciphers "HIGH:!aNULL:!MD5 or HIGH:!aNULL:!MD5:!3DES";
|
||||
ssl_prefer_server_ciphers on;
|
||||
|
||||
add_header Access-Control-Allow-Origin '*';
|
||||
|
||||
location / {
|
||||
autoindex on;
|
||||
try_files $uri $uri/ /index.html?$args;
|
||||
}
|
||||
|
||||
location ~ \.*.php$ {
|
||||
include fastcgi_params;
|
||||
fastcgi_split_path_info ^(.+\.php)(.*)$;
|
||||
fastcgi_pass 127.0.0.1:9001;
|
||||
fastcgi_intercept_errors on;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
###
|
||||
# https://gamewheel.local
|
||||
# redirect to
|
||||
# https://www.gamewheeel.local
|
||||
###
|
||||
|
||||
server {
|
||||
|
||||
listen 443 ssl;
|
||||
server_name gamewheel.local;
|
||||
|
||||
ssl off;
|
||||
ssl_certificate /etc/ssl/certs/ssl-cert-snakeoil.pem;
|
||||
ssl_certificate_key /etc/ssl/private/ssl-cert-snakeoil.key;
|
||||
ssl_session_timeout 5m;
|
||||
ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2;
|
||||
ssl_ciphers "HIGH:!aNULL:!MD5 or HIGH:!aNULL:!MD5:!3DES";
|
||||
ssl_prefer_server_ciphers on;
|
||||
|
||||
return 301 https://www.gamewheel.local$request_uri;
|
||||
}
|
||||
|
||||
|
||||
###
|
||||
# http://(www.)gamewheel.local
|
||||
# redirect to
|
||||
# https://www.gamewheeel.com
|
||||
###
|
||||
|
||||
server {
|
||||
|
||||
listen 80;
|
||||
server_name gamewheel.local www.gamewheel.local;
|
||||
|
||||
return 301 https://www.gamewheel.local$request_uri;
|
||||
}
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
server {
|
||||
listen 80;
|
||||
listen 443 ssl;
|
||||
|
||||
server_name www.gamewheel.local;
|
||||
|
||||
root /srv/gamewheel.local/www;
|
||||
index index.php;
|
||||
|
||||
access_log /var/log/nginx/www.gamewheel.local.access.log;
|
||||
error_log /var/log/nginx/www.gamewheel.local.error.log;
|
||||
|
||||
ssl_certificate /etc/ssl/certs/ssl-cert-snakeoil.pem;
|
||||
ssl_certificate_key /etc/ssl/private/ssl-cert-snakeoil.key;
|
||||
ssl_session_timeout 5m;
|
||||
ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2;
|
||||
ssl_ciphers "HIGH:!aNULL:!MD5 or HIGH:!aNULL:!MD5:!3DES";
|
||||
ssl_prefer_server_ciphers on;
|
||||
|
||||
|
||||
rewrite ^/sitemap(-+([a-zA-Z0-9_-]+))?\.xml$ "/index.php?xml_sitemap=params=$2" last;
|
||||
rewrite ^/sitemap(-+([a-zA-Z0-9_-]+))?\.xml\.gz$ "/index.php?xml_sitemap=params=$2;zip=true" last;
|
||||
rewrite ^/sitemap(-+([a-zA-Z0-9_-]+))?\.html$ "/index.php?xml_sitemap=params=$2;html=true" last;
|
||||
rewrite ^/sitemap(-+([a-zA-Z0-9_-]+))?\.html.gz$ "/index.php?xml_sitemap=params=$2;html=true;zip=true" last;
|
||||
|
||||
add_header Access-Control-Allow-Origin '*';
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.php?$args;
|
||||
}
|
||||
|
||||
location ~ \.*.php$ {
|
||||
include fastcgi_params;
|
||||
fastcgi_split_path_info ^(.+\.php)(.*)$;
|
||||
fastcgi_pass 127.0.0.1:9001;
|
||||
fastcgi_intercept_errors on;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue