-
I have tried so many times with subtle differences that I have actually learned from this, but I can't make it work. I'm trying to configure nginx-proxy and kratos running on podman containers. This implementation is working fine for other services also running on containers. This is relevant nginx config for kratos:
kratos is also running from a podman container, in the same network. This container exposes 4433 and 4434 as expected. When the container runs, everything seems to be ok:
When trying to make a request such as
What is wrong?! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
UPDATEI forgot to post the kratos config, in extenso:
|
Beta Was this translation helpful? Give feedback.
-
The problem is that you're setting serve.public.host and serve.admin.host to 127.0.0.1 in the kratos config. That limits kratos to listening only on localhost, you won't be able to access it via the container's IP. If you remove the host: lines, your log should have something like:
listening on 0.0.0.0 means listening on all available interfaces. Additionally, all the *_url values are going to be used to create urls handled by the browser. All the http://127.0.0.1:4433 references should be https://accounts.example.org. |
Beta Was this translation helpful? Give feedback.
The problem is that you're setting serve.public.host and serve.admin.host to 127.0.0.1 in the kratos config. That limits kratos to listening only on localhost, you won't be able to access it via the container's IP. If you remove the host: lines, your log should have something like: