Skip to content

Commit 4edc292

Browse files
committed
feat: add SAML2 proxy configuration for authentication
1 parent a0898b4 commit 4edc292

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

installer/templates/front-end.go

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,25 @@ const FrontEnd string = `server {
1515
set $utmstack_agent_manager http://agentmanager:9001;
1616
set $utmstack_backend_auth http://backend:8080/api/authenticate;
1717
set $utmstack_ws http://backend:8080/ws;
18-
set $utmstack_saml2 http://backend:8080/login/saml2/;
1918
set $shared_key {{.SharedKey}};
2019
set $shared_key_header $http_x_shared_key;
2120
21+
location /saml2/ {
22+
proxy_pass http://backend:8080/saml2/;
23+
proxy_set_header Host $host;
24+
proxy_set_header X-Real-IP $remote_addr;
25+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
26+
proxy_set_header X-Forwarded-Proto $scheme;
27+
}
28+
29+
location /login/saml2/ {
30+
proxy_pass http://backend:8080/login/saml2/;
31+
proxy_set_header Host $host;
32+
proxy_set_header X-Real-IP $remote_addr;
33+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
34+
proxy_set_header X-Forwarded-Proto $scheme;
35+
}
36+
2237
location /api {
2338
proxy_pass $utmstack_backend;
2439
proxy_set_header Host $host;

0 commit comments

Comments
 (0)