chore: useBasePath("/api") & better local forwarded headers

refactor from workaround hack to idempotent solution
This commit is contained in:
2023-12-27 16:25:08 +01:00
parent c1cd056495
commit ea5bdd7f1e
4 changed files with 28 additions and 11 deletions
+12 -6
View File
@@ -57,7 +57,18 @@ http {
}
location /Identity/ {
proxy_pass_request_headers on;
proxy_set_header X-Forwarded-For "$proxy_add_x_forwarded_for";
proxy_set_header X-Forwarded-Proto "$scheme";
proxy_set_header X-Forwarded-Host "$http_host";
proxy_pass https://backend;
}
location /api/ {
proxy_pass_request_headers on;
proxy_set_header X-Forwarded-For "$proxy_add_x_forwarded_for";
proxy_set_header X-Forwarded-Proto "$scheme";
proxy_set_header X-Forwarded-Host "$http_host";
proxy_pass https://backend;
proxy_pass_request_headers on;
}
@@ -74,10 +85,5 @@ http {
proxy_pass https://backend;
proxy_pass_request_headers on;
}
location /api/ {
proxy_pass https://backend;
proxy_pass_request_headers on;
}
}
}