feat(ap4): defend forwarded identity headers
This commit is contained in:
+1
-1
@@ -1,4 +1,4 @@
|
||||
FROM nginx:1.29-alpine
|
||||
|
||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||
COPY default.conf.template /etc/nginx/templates/default.conf.template
|
||||
COPY index.html /usr/share/nginx/html/index.html
|
||||
|
||||
@@ -46,6 +46,7 @@ server {
|
||||
proxy_pass http://app:8081/edge/me;
|
||||
proxy_set_header X-Auth-Request-User $auth_user;
|
||||
proxy_set_header X-Auth-Request-Email $auth_email;
|
||||
proxy_set_header X-Internal-Auth-Token "${INTERNAL_AUTH_TOKEN}";
|
||||
}
|
||||
|
||||
location / {
|
||||
@@ -60,6 +61,7 @@ server {
|
||||
proxy_pass http://app:8081/edge/me;
|
||||
proxy_set_header X-Auth-Request-User $auth_user;
|
||||
proxy_set_header X-Auth-Request-Email $auth_email;
|
||||
proxy_set_header X-Internal-Auth-Token "${INTERNAL_AUTH_TOKEN}";
|
||||
}
|
||||
|
||||
location @oauth2_signin {
|
||||
Reference in New Issue
Block a user