Skip to content

Commit f0cda86

Browse files
Backlog/v12 nginx routes (#2294)
* fix[installer](nginx): fixed websocket proxy * fix[installer](nginx): fixed frontend proxy to avoid integrations error
1 parent 88f27b3 commit f0cda86

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

installer/templates/front-end.go

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const FrontEnd string = `server {
88
location / {
99
root /usr/share/nginx/html;
1010
index index.html index.htm;
11-
try_files $uri $uri/ /index.html =404;
11+
try_files $uri /index.html =404;
1212
}
1313
1414
set $utmstack_backend http://backend:8080;
@@ -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)