Skip to content

Commit 13c40dd

Browse files
fix[installer](nginx): fixed websocket proxy
1 parent 18bda3f commit 13c40dd

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

installer/templates/front-end.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,18 @@ const FrontEnd string = `server {
3232
proxy_set_header X-Forwarded-Proto $scheme;
3333
}
3434
35+
location ~ ^/api/v1/soar/ws/ {
36+
proxy_pass $utmstack_backend;
37+
proxy_http_version 1.1;
38+
proxy_set_header Upgrade $http_upgrade;
39+
proxy_set_header Connection "Upgrade";
40+
proxy_set_header Host $host;
41+
proxy_set_header X-Real-IP $remote_addr;
42+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
43+
proxy_set_header X-Forwarded-Proto $scheme;
44+
proxy_read_timeout 900;
45+
}
46+
3547
location /api {
3648
proxy_pass $utmstack_backend;
3749
proxy_set_header Host $host;

0 commit comments

Comments
 (0)