3doo config

beta.r3js.org
Theunis J. Botha 2017-02-14 13:51:34 +01:00
parent 4d5461609c
commit 4f952afff1
2 changed files with 29 additions and 0 deletions

1
hosts
View File

@ -10,6 +10,7 @@
127.0.1.1 3d-editor-v3.gamewheel.local
127.0.1.1 3d-editor-v3-debug.gamewheel.local
127.0.1.1 3d-pong.gamewheel.local
127.0.1.1 3doo.gamewheel.local
127.0.1.1 3d-pong-debug.gamewheel.local
127.0.1.1 3d-racing.gamewheel.local
127.0.1.1 3d-racing-debug.gamewheel.local

28
nginx/3doo.conf Normal file
View File

@ -0,0 +1,28 @@
server {
listen 80;
server_name 3doo.gamewheel.local 3doo-debug.gamewheel.local;
root /usr/share/gamewheel/3d-pong;
#We start to pass everything to express, otherwise we end up with '/' location saying 403 Forbidden
#Static files delivered trough express.static()
location ~ {
add_header Access-Control-Allow-Origin $http_origin;
# 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;
proxy_pass http://127.0.0.1:3101;
proxy_ssl_session_reuse off;
proxy_set_header Host $http_host;
proxy_redirect off;
}
}