Skip to content

Connection refused when using nginx-proxy and podman environment #3728

Answered by mtillberg
fenandosr asked this question in Q&A
Discussion options

You must be logged in to vote

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:

level=info msg=Starting the public httpd on: 0.0.0.0:4433 func=github.com/ory/x/logrusx.(*Logger).Logf file=/go/pkg/mod/github.com/ory/[email protected]/logrusx/helper.go:125 audience=application service_name=Ory Kratos service_version=v1.1.0
level=info msg=Starting the admin httpd on: 0.0.0.0:4434 func=github.com/ory/x/logrusx.(*Logger).Logf file=/go/pkg/mod/github.com/ory/[email protected]/logrusx/helper.go:125 audience=ap…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by vinckr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants