r3-config/nginx/sites-available/3d-racing.conf

30 lines
887 B
Plaintext

#origin https://github.com/ToywheelDev/3d-racing.git
server {
listen 80;
server_name 3d-racing.gamewheel.com;
root /usr/share/gamewheel/3d-racing;
index index.html;
#We start to pass everything to express, otherwise we end up with '/' location saying 403 Forbidden
#Static files delivered trough express.static()
location ~ {
# 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://3d-racing;
proxy_ssl_session_reuse off;
proxy_set_header Host $http_host;
proxy_redirect off;
}
}