Switch to nginx-proxy

This commit is contained in:
2025-07-20 22:21:37 +01:00
parent 650bb88bc0
commit a1e0fb1ebb
10 changed files with 349 additions and 160 deletions

23
nginx/vhost.d/rec Normal file
View File

@@ -0,0 +1,23 @@
Need to figure out how to get this working with nginx-proxy
# This file is for the /change/socket.io and /change/peer paths
location ~ ^/change/(socket\.io|peer) {
# Set proxy headers
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# WebSocket specific headers
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
# WebSocket specific settings
proxy_buffering off;
proxy_redirect off;
proxy_connect_timeout 90s;
proxy_send_timeout 90s;
proxy_read_timeout 90s;
proxy_pass http://$server_name;
}