Skip to content

Commit b6294ba

Browse files
authored
fix(docker-compose): update ws nginx config (#263)
1 parent 000e818 commit b6294ba

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

configs/gateway/base.conf

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ location ~ \.php($|/) {
4646

4747
location @ws {
4848
proxy_pass http://${WS_SERVICE_NAME}:6001;
49-
proxy_set_header Host $host;
5049
proxy_read_timeout 60;
5150
proxy_connect_timeout 60;
5251
proxy_redirect off;
@@ -56,5 +55,9 @@ location @ws {
5655
proxy_set_header Upgrade $http_upgrade;
5756
proxy_set_header Connection 'upgrade';
5857
proxy_set_header Host $host;
58+
proxy_set_header Scheme $scheme;
59+
proxy_set_header SERVER_PORT $server_port;
60+
proxy_set_header REMOTE_ADDR $remote_addr;
61+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
5962
proxy_cache_bypass $http_upgrade;
6063
}

0 commit comments

Comments
 (0)