Discourse behind Caddy 502 Error

I’m trying to serve a Discourse forum using Caddy (with several other sites), after reading some ways of doing it I decide to follow the Caddyfile examples repo. (I believe is how this site do it)

I’m getting the following 502 error:
[ERROR 502 /] read tcp [::1]:32864->[::1]:8080: read: connection reset by peer


soporte.colmecar.es {
    	proxy / localhost:8080 {
    	errors /home/plorenzo/dev/logs/errorsDiscourse.log

Any idea of what the problem is?

Found the problem !

Digging into docker logs I saw that Nginx was trying to get certificates, to fix it I just commented a few line in app.yml

#  - "templates/web.ssl.template.yml"
#  - "templates/web.letsencrypt.ssl.template.yml"

After rebuild the container ./launcher rebuild app and it’s good to go :smile:

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.