Make radicale work behind Caddy

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?

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.

3 Likes

Thank you very much for helping me. I made it work and created a PR: Add Radicale example by DamienCassou · Pull Request #115 · caddyserver/examples · GitHub.

1 Like

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