breakfix: Deadlock starting with OIDC provider behind caddy #282
Labels
oauth
oauth-delayed-start
oauth-retry
pending user response
question
Further information is requested
Describe the issue
Caddy can't start if the OIDC provider itself is behind the proxy.
I'm running an OIDC provider (dex) behind caddy as a reverse proxy at
login.mydomain.tld
. Adding caddy-security, makes caddy fail to start with the following error:This seems to be related because of a deadlock:
Caddy is not running -> Caddy can't reach
login.mydomain.tld/.well-known/openid-configuration
to start with caddy-security -> Caddy can't startConfiguration
Paste full
Caddyfile
below:Version Information
Provide output of
caddy list-modules -versions | grep git
below:Expected behavior
Caddy should start and retry reaching the metadata url or start the reverse-proxy entries first, then the caddy-security related stuff
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: