2016-11-08 12:34:17 +01:00
|
|
|
#origin https://github.com/ToywheelDev/3d-racing.git
|
2016-10-31 12:05:28 +01:00
|
|
|
server {
|
|
|
|
listen 80;
|
2016-11-08 12:34:17 +01:00
|
|
|
|
2016-12-19 16:47:17 +01:00
|
|
|
server_name 3d-racing.gamewheel.com 3d-racing-debug.gamewheel.com;
|
2016-10-31 12:05:28 +01:00
|
|
|
|
2016-12-19 16:47:17 +01:00
|
|
|
root /srv/gamewheel.com/racing/3d-racing;
|
2016-10-31 12:05:28 +01:00
|
|
|
|
2016-11-11 18:29:57 +01:00
|
|
|
index index.html;
|
|
|
|
|
2016-10-31 12:05:28 +01:00
|
|
|
location / {
|
2016-11-08 12:34:17 +01:00
|
|
|
add_header Access-Control-Allow-Origin $http_origin;
|
2016-10-31 12:05:28 +01:00
|
|
|
autoindex on;
|
|
|
|
try_files $uri $uri/ @node;
|
|
|
|
}
|
|
|
|
|
|
|
|
location @node {
|
2016-11-08 13:22:18 +01:00
|
|
|
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:3102;
|
|
|
|
proxy_ssl_session_reuse off;
|
|
|
|
proxy_set_header Host $http_host;
|
|
|
|
proxy_redirect off;
|
2016-10-31 12:05:28 +01:00
|
|
|
}
|
|
|
|
}
|