File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 1+ # Docker DNS (MANDATORY)
2+ resolver 127.0.0.11 ipv6=off valid=30s ;
3+
14server {
25 listen 80 ;
36 server_name _;
@@ -16,11 +19,15 @@ server {
1619 # API & Frontend
1720 # ===============================
1821 location / {
19- proxy_pass http ://streamvision:3000 ;
22+ # Dynamic DNS resolution (CRITICAL)
23+ set $upstream streamvision:3000 ;
24+ proxy_pass http ://$upstream ;
25+
2026 proxy_set_header Host $host ;
2127 proxy_set_header X-Real-IP $remote_addr ;
2228 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for ;
2329 proxy_set_header X-Forwarded-Proto $scheme ;
30+
2431 proxy_buffering off;
2532 proxy_request_buffering off;
2633 }
@@ -29,7 +36,9 @@ server {
2936 # WebSocket Streaming
3037 # ===============================
3138 location /ws {
32- proxy_pass http ://streamvision:3000 ;
39+ # Dynamic DNS resolution (CRITICAL)
40+ set $upstream streamvision:3000 ;
41+ proxy_pass http ://$upstream ;
3342
3443 proxy_set_header Upgrade $http_upgrade ;
3544 proxy_set_header Connection "upgrade" ;
You can’t perform that action at this time.
0 commit comments