Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions installer/docker/compose.go
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,7 @@ func (c *Compose) Populate(conf *config.Config, stack *StackConfig) error {
},
Ports: []string{
"50051:50051",
"50052:50052",
},
Volumes: []string{
stack.Cert + ":/cert",
Expand Down
17 changes: 17 additions & 0 deletions installer/templates/front-end.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ const FrontEnd string = `server {
set $shared_key {{.SharedKey}};
set $shared_key_header $http_x_shared_key;

set $utmstack_log_input https://log-input:50052;
set $api_key_header $http_utm_api_key;

location ~ ^/api/v1/soar/ws/ {
proxy_pass $utmstack_backend;
proxy_http_version 1.1;
Expand All @@ -28,6 +31,20 @@ const FrontEnd string = `server {
proxy_read_timeout 900;
}


location /ingest {
if ($api_key_header = "") {
return 403;
}

proxy_pass $utmstack_log_input/v1/ingest;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_read_timeout 900;
}

location /api {
proxy_pass $utmstack_backend;
proxy_set_header Host $host;
Expand Down
Loading