28 lines
701 B
Plaintext
28 lines
701 B
Plaintext
|
#origin https://github.com/ToywheelDev/3d-racing.git
|
||
|
server {
|
||
|
listen 80;
|
||
|
|
||
|
server_name 3d-racing.cybafelo.local 3d-racing-debug.cybafelo.local;
|
||
|
|
||
|
root /usr/share/gamewheel/3d-racing;
|
||
|
|
||
|
index index.html;
|
||
|
|
||
|
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:3102;
|
||
|
proxy_ssl_session_reuse off;
|
||
|
proxy_set_header Host $http_host;
|
||
|
proxy_redirect off;
|
||
|
}
|
||
|
}
|