clawtainer/nginx.conf

36 lines
895 B
Nginx Configuration File

events {
worker_connections 1024;
}
http {
upstream vnc_backend {
server clawtainer:6901;
}
server {
listen 80;
server_name _;
# Increase timeouts for websocket connections
proxy_connect_timeout 7d;
proxy_send_timeout 7d;
proxy_read_timeout 7d;
location / {
proxy_pass https://vnc_backend;
proxy_ssl_verify off;
# WebSocket support
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
# Standard proxy headers
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
}