30 lines
792 B
Plaintext
30 lines
792 B
Plaintext
server {
|
|
listen 80;
|
|
|
|
server_name 3d-editor-v2.gamewheel.com 3d-editor-v2-debug.gamewheel.com;
|
|
|
|
root /srv/gamewheel.com/3d_editor_v2;
|
|
index index.html;
|
|
|
|
access_log /var/log/nginx/3d-editor-v2.gamewheel.com.access.log;
|
|
error_log /var/log/nginx/3d-editor-v2.gamewheel.com.error.log;
|
|
|
|
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:3114;
|
|
proxy_ssl_session_reuse off;
|
|
proxy_set_header Host $http_host;
|
|
proxy_redirect off;
|
|
}
|
|
}
|