Skip to content

Commit ddd9892

Browse files
authored
Merge branch 'release/v12.0.0' into backlog/v12_integation_index_patterns
2 parents 6eddaf4 + 2a54993 commit ddd9892

3 files changed

Lines changed: 16 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/docker/plugins.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ type PluginConfig struct {
2121
PostgreSQL PostgreConfig `yaml:"postgresql,omitempty"`
2222
ServerName string `yaml:"serverName,omitempty"`
2323
InternalKey string `yaml:"internalKey,omitempty"`
24+
EncryptionKey string `yaml:"encryptionKey,omitempty"`
2425
Env string `yaml:"env,omitempty"`
2526
AgentManager string `yaml:"agentManager,omitempty"`
2627
Backend string `yaml:"backend,omitempty"`
@@ -82,6 +83,7 @@ func SetPluginsConfigs(conf *config.Config, stack *StackConfig) error {
8283
},
8384
ServerName: conf.ServerName,
8485
InternalKey: conf.InternalKey,
86+
EncryptionKey: conf.InternalKey,
8587
Env: conf.Branch,
8688
AgentManager: "10.21.199.3:9000",
8789
Backend: "http://backend:8080",

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)