Comment on Listmonk email server, running via docker through nginx vhost. Resolves with port at the end but I get a 502 bad gateway error without the port.

brygphilomena@lemmy.world ⁨10⁩ ⁨months⁩ ago

I wrote this a while back. Maybe it can help reddit.com/…/tutorial_reverse_proxy_with_nginx/

502 usually means it’s having a hard time hitting the service on the back end. Are you able to access listmonk directly without the reverse proxy? What is the URL I. The browser when you do that?

Is listmonk on the same server as nginx? Is nginx running in a container? If nginx is running in a container, 127.0.0.1 would try to load from inside the nginx container which isn’t where listmonk is. Use the LAN IP address of the docker host listmonk is on instead of 127.0.0.1.

source
Sort:hotnewtop