Make radicale work behind Caddy


(Damien Cassou) #1

I have Radicale (caldav/cardav server) running on http://localhost:5232/. I would like to get it under https://dav.my.domain.eu instead and let port 5232 accessible only locally. I haven’t found any example for Caddy on the Radicale website, but there are examples for Apache and Nginx: http://radicale.org/proxy/. I’m not sure what I should start with.

Could someone please help me get started?


(Lucas) #2

The docs for the proxy settings are here: https://caddyserver.com/docs/proxy

Perhaps you could start with something like this?

dav.my.domain.eu {
    proxy /radicale/ localhost:5232 {
        transparent
        header_upstream X-Script-Name /radicale
    }
}

I’m not going to read all of the documentation for Radicale or try to set it up and test it myself, but that should give you a good starting point at least.


(Damien Cassou) #3

Thank you very much for helping me. I made it work and created a PR: https://github.com/caddyserver/examples/pull/115.