50 lines
1.3 KiB
Plaintext
50 lines
1.3 KiB
Plaintext
|
server {
|
||
|
listen 80;
|
||
|
#listen 443 ssl;
|
||
|
|
||
|
server_name 3doo.gamewheel.com;
|
||
|
|
||
|
root /srv/gamewheel.com/vr_pong_fetch;
|
||
|
index index.html;
|
||
|
|
||
|
# Log Config
|
||
|
access_log /var/log/nginx/3d-editor.gamewheel.com.access.log;
|
||
|
error_log /var/log/nginx/3d-editor.gamewheel.com.error.log;
|
||
|
|
||
|
# SSL Config
|
||
|
#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' '$http_origin';
|
||
|
|
||
|
location / {
|
||
|
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;
|
||
|
|
||
|
|
||
|
# WebSocket support (nginx 1.4)
|
||
|
proxy_http_version 1.1;
|
||
|
proxy_set_header Upgrade $http_upgrade;
|
||
|
proxy_set_header Connection "upgrade";
|
||
|
|
||
|
# Path rewriting
|
||
|
# rewrite /(.*) /$1 break;
|
||
|
|
||
|
proxy_redirect off;
|
||
|
}
|
||
|
}
|