Hi team . Im trying to use both ory kratos servic...
# ory-selfhosting
l
Hi team . Im trying to use both ory kratos services and Frontend service under same domain . Is there is a possiblity that can i handle it in the frontend level to do this (eg : like writing middleware).My FE app is running on NEXT JS.
d
You could run a reverse proxy (e.g. Caddy) in front of both services, or use nextjs rewrites to use nextjs as a proxy itself. But I would probably just use a
auth.<your domain>
subdomain, make your life a bit easier.
l
Thanks @dazzling-nightfall-42114. i used nextjs rewrites in my local and its working. now im testing on the k8s cluster