Updated conection process to work hopfully with docker.

This commit is contained in:
Karmaa
2025-03-05 16:15:51 -06:00
parent 713d43fc52
commit e800064f05
6 changed files with 52 additions and 45 deletions

View File

@@ -21,17 +21,16 @@ http {
# Proxy IO requests
location /socket.io/ {
proxy_pass http://0.0.0.0:8081;
proxy_pass http://127.0.0.1:8081;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
# CORS settings
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Methods' '*';
add_header 'Access-Control-Allow-Headers' '*';
# Timeout settings
proxy_read_timeout 86400s;
proxy_send_timeout 86400s;
}
# Error pages