Skip to content

Commit 8352ecb

Browse files
authored
fix(qa-auth): forward cloudflare access headers through nginx /api pr… (#116)
…oxy to api container
1 parent 2f4d206 commit 8352ecb

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/F1.Web/nginx.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ server {
2121
proxy_http_version 1.1;
2222
proxy_set_header Host $host;
2323
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
24+
proxy_set_header Cf-Access-Jwt-Assertion $http_cf_access_jwt_assertion;
25+
proxy_set_header Cf-Access-Authenticated-User-Email $http_cf_access_authenticated_user_email;
26+
proxy_set_header Cf-Access-Authenticated-User-Id $http_cf_access_authenticated_user_id;
2427
}
2528

2629
# Proxy Swagger UI requests

0 commit comments

Comments
 (0)