little-guitar-25547
10/17/2023, 7:00 PMkratos-selfservice-ui as well behind this URL? Currently I am using different routes for the kratos auth and the kratos UI auth/self-service.
# Kratos UI
location /auth/self-service {
rewrite /auth/self-service/(.*) /$1 break;
proxy_pass http://${PRIVATE_KRATOS_HOST};
proxy_redirect off;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
# Kratos UI
location /auth {
rewrite /auth/(.*) /$1 break;
proxy_pass http://${PRIVATE_KRATOS_SELFSERVICE_UI_HOST};
proxy_redirect off;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
Is this the right approach?