#1803
HTTP-01 returns 502 in containerized self-hosted stack
Problem
In the self-hosted Docker Compose deployment, HTTP-01 validation returns 502 Bad Gateway for /.well-known/acme-challenge/*.
The generated edge config proxies to 127.0.0.1:49180, while the API/Certbot process may run in the API container network namespace. The host-networked edge cannot reach that container loopback listener.
Observed behavior:
- DNS resolves to the server public IP.
- Port 80 is reachable.
- OpenResty returns 502 for the ACME path.
- No listener is reachable on host port 49180 during validation.
Proposed fix
Publish API port 49180 on host loopback (127.0.0.1:49180:49180) in the self-hosted Compose stack, so the host-networked edge can reach Certbot when it runs in the API container. Add a regression/configuration test.
Activity
0No activity yet.