1. Caddy version (caddy version
):
v2.1.1 h1:X9k1+ehZPYYrSqBvf/ocUgdLSRIuiNiMo7CvyGUQKeA=
2. How I run Caddy:
system service installed from apt repository
a. System environment:
standard ubuntu 18.04
b. Command:
service caddy start
c. Service/unit/compose file:
paste full file contents here
d. My complete Caddyfile or JSON config:
paste config here, replacing this text
DO NOT REDACT anything except credentials
test.doobiemailer.com:80 {
reverse_proxy /api/* localhost:9000
reverse_proxy / localhost:8080
}
3. The problem I’m having:
trying to setup reverse proxy for listmonk.
here is the nginx equivalent of what im trying to get Caddy to do:
listmonk
server {
listen 9001;# Proxy all /api/* requests to the Go backend. location /api { proxy_pass http://localhost:9000; } # Proxy everything else to the Vue frontend running on the Yarn server. location / { proxy_pass http://localhost:8080; }
}
4. Error messages and/or full log output:
This site can’t be reached
The connection was reset.
Try:
- Checking the connection
- Checking the proxy and the firewall
ERR_CONNECTION_RESET
5. What I already tried:
ive read the reverse proxy docs like 20 times and ive tried various versions of the reverse proxy config settings but it always is either a 502 or a ERR_CONNECTION_RESET.
go to test.doobiemailer.com and if its working you should get a login prompt for listmonk.
6. Links to relevant resources:
Developer setup - listmonk / Documentation (bottom of the page)