Skip to content

Commit d8d43c4

Browse files
authored
Merge branch 'release/v12.0.0' into backlog/fix-installer-missing-encryption-key
2 parents 8102500 + f0cda86 commit d8d43c4

2 files changed

Lines changed: 14 additions & 2 deletions

File tree

collectors/forwarder/serv/service.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ func (p *program) run() {
8888

8989
ctx = metadata.AppendToOutgoingContext(ctx, "key", cnf.CollectorKey)
9090
ctx = metadata.AppendToOutgoingContext(ctx, "id", strconv.Itoa(int(cnf.CollectorID)))
91-
ctx = metadata.AppendToOutgoingContext(ctx, "type", "agent")
91+
ctx = metadata.AppendToOutgoingContext(ctx, "type", "collector")
9292

9393
p.goSafe("StartPing", func() {
9494
upstream.StartPing(cnf, ctx)

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)