File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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;
You can’t perform that action at this time.
0 commit comments