tomsquest / docker-radicale

Docker image for Radicale calendar and contact server :calendar: + security :closed_lock_with_key: + addons :rocket:
GNU General Public License v3.0
591 stars 82 forks source link

How to add SSL? #156

Closed BuilderZac closed 3 months ago

BuilderZac commented 3 months ago

Hello I am trying to self host this and just connect via localhost from a app on my phone. Only problem is the app does not have a option for non https servers so I need to make it a https connection. As mentioned this is localhost so no domains or 3rd party things are being used. Is there a way I can add a self-signed cert to this container to give me https?

tomsquest commented 3 months ago

Hi @BuilderZac ,

I am pretty sure Radicale (the app, not this image) supports custom certificate. But I strongly encourage use to put Radicale behind a sever, like Caddy. Caddy will handle https for you, so the traffic will be encrypted. My advice would be to create your own docker-compose.yml and declare Caddy and this image into.

I hope this will guide you a bit.