Also, would I deploy the `kratos-selfservice-ui` a...
# talk-kratos
l
Also, would I deploy the
kratos-selfservice-ui
as well behind this URL? Currently I am using different routes for the kratos
auth
and the kratos UI
auth/self-service
.
Copy code
# 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?