Nginix-proxy not setting up server block for LetsEncrypt ACME challenge #1043
Unanswered
davidparks21
asked this question in
Q&A
Replies: 1 comment
-
Hi. I don't think you're following proper documentations because there are no
Also it's not possible to tell if your services are correctly configured without their actual configurations. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm currently trying to use
nginx-proxy
together withdocker-letsencrypt-nginx-proxy-companion
to automatically issue SSL certificates for my services. I have set up my Docker Compose configuration according to the documentation, and the containers start without any errors. However, nginx-proxy doesn't seem to be setting up the server block for the ACME challenge correctly.When Let's Encrypt tries to validate the domain, it receives a 503 Service Unavailable error. The nginx-proxy logs show that it received the request and returned the 503 status. I suspect that this is because the server block for the ACME challenge isn't being set up correctly, but I haven't been able to figure out why this is happening.
Here's the relevant part of my Docker Compose configuration:
The services that need the SSL certificates have the
VIRTUAL_HOST
andLETSENCRYPT_HOST
environment variables set to their respective domains. All containers are on the same Docker network.To troubleshoot, we inspected Docker events, verified that all containers are on the same network, and checked that the environment variables are set correctly. However, we didn't observe any configuration errors or unusual events. The nginx-proxy logs only showed the 503 status for the ACME challenge requests, but no errors or warnings.
Here are some of the relevant log entries from nginx-proxy:
Any help in figuring out why the server block for the ACME challenge isn't being set up would be greatly appreciated. I've run GPT4 out of ideas on this one. At one point I had it working by manually including a server block for the challenge files, but that change combined with a few others I ran into along the way snowballed into problems I could no longer debug, so I've backed out to the original configuration and am trying to see why things aren't working without hacking at it.
Beta Was this translation helpful? Give feedback.
All reactions