Skip to content

Commit cfab24c

Browse files
authored
Merge pull request #44 from LeaoLuciano/websocket
Edit websocket configuration
2 parents 9597a30 + 404d4d4 commit cfab24c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

default.conf

+5-2
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,14 @@ server {
7979
}
8080

8181
location /ws {
82-
proxy_pass http://127.0.0.1:4321;
82+
proxy_pass http://172.17.0.1:4321;
83+
proxy_http_version 1.1;
84+
proxy_set_header Upgrade $http_upgrade;
85+
proxy_set_header Connection "upgrade";
8386
include /etc/nginx/shared/proxy.conf;
84-
8587
}
8688

89+
8790
location /metrics {
8891
auth_basic "Metrics";
8992
auth_basic_user_file /etc/nginx/shared/htpasswd;

0 commit comments

Comments
 (0)