Allow an additional kratos endpoint through

The /auth/self-service/errors route is used to lookup auth issues so the route must also be proxied to kratos.
This commit is contained in:
Corey Ogburn
2023-07-06 15:04:31 -06:00
parent 8178338971
commit da7770a900

View File

@@ -160,7 +160,7 @@ http {
proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-Proto $scheme;
} }
location ~ ^/auth/.*?(whoami|logout|settings|webauthn.js) { location ~ ^/auth/.*?(whoami|logout|settings|errors|webauthn.js) {
rewrite /auth/(.*) /$1 break; rewrite /auth/(.*) /$1 break;
proxy_pass http://{{ GLOBALS.manager }}:4433; proxy_pass http://{{ GLOBALS.manager }}:4433;
proxy_read_timeout 90; proxy_read_timeout 90;