Caddy in front of app’s Nginx via Docker Compose

I’ve upgraded one of my Discourse forum servers, so to open UDP 443 rather than only TCP in the IONOS Cloud Panel firewall (i’m from GB).

I don’t use CDN because this particular forum isn’t big user number, but has lots of categories.

I had some difficulty in ensuring the IP geos through nginx correctly, and the forum performs well now with no issues in /logs.

I have rotating proxy logs set up with Docker Compose and appreciate that Caddy does some automatic redaction of sensitive field in the proxy logs, something i haven’t quite noticed with Nginx before. Though i only recall using proxy logs twice in the 2 years i’ve used Discourse in production.

I’m hoping to gather how much interest there would be if i published a guide going through what commands i ran, and what happened when i ran them, to get from the Beginner docker install guide to the slightly more mobile-friendly forum now - i can include commands for future maintenance, i.e. upgrading Caddy to a newer release, but i haven’t tested these commands on my IONOS L VPS yet.

1 Like