Anyone have a working & tested Caddyfile config for this?

OK, I’ve spent hours trying to get Duplicati working with Caddy as a reverse proxy and still no luck. I’ve run out of time to mess with it anymore.

Does anyone have a fully tested and working config to use Duplicati behind Caddy running as a reverse proxy? I’ve scoured the Googles and can’t find a single working example for Caddy, and all attempts at translating supposedly working configs from other server software (Apache, Nginx) have failed.

Anyone? Bueller?
TIA

Anyone?

… anyone?

… anyone?

… Bueller?

… anyone?

What have you tried?

And follow up, have you tried checking out the https://caddy.community/ forum?

This isn’t exactly Duplicati specific.

Hi Alll

I know this is years late but figured I’d reply seen after days of fiddling I finally came right with Duplicati running in a container and reverse proxying with internal tls via Caddy.

You need to add the below environment variable to Duplicati, I am using Portainer and added it to my compose file.

  • DUPLICATI__WEBSERVICE_ALLOWED_HOSTNAMES=(yourcustomdomainname)

Then your Caddyfile is just the usual Caddy super simple tls internal

https://yourcustomdomainname:443 {
tls internal
reverse_proxy IPorcontainername:duplicatiport
}

Hope this helps someone.