User Tools

This is an old revision of the document!


Radicale

Radicale is a WebDAV/CardDAV server.

Add user:

 > useradd -d /data/daemons/radicale -m radicale

Create data folder:

 > mkdir /data/cardcal
 > chown radicale:radicale /data/cardcal

enable pip (see deemon)

run as user radicale:

 > pip install --upgrade radicale

Create the config file ~/.config/radicale/config:

config
[server]
# Bind all addresses
hosts = 127.0.0.1:5232
 
[auth]
type = http_x_remote_user
#htpasswd_filename = ~/.config/radicale/users
#htpasswd_encryption = md5
 
[storage]
filesystem_folder = /data/cardcal

then start it:

 > radicale 

Setup nginx reverse proxy:

radicale.conf
location /radicale/ { # The trailing / is important!
    proxy_pass        http://localhost:5232/; # The / is important!
    proxy_set_header  X-Script-Name /radicale;
    proxy_set_header  X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header  Host $http_host;
    proxy_pass_header Authorization;
    proxy_set_header     X-Remote-User $remote_user; # allow automatic authentication using proxy credentials
    # to prevent timeouts importing huge calendars or contacts lists
    proxy_send_timeout 600;
    proxy_read_timeout 600;
 
}

and restart nginx.

Now go with browser to http://server-ip/radicale and setup.

Autostart, put this into /etc/local.d/50-radicale.start and make it executable:

50-radicale.start
#!/bin/bash
 
start-stop-daemon -b -m -p /var/run/radicale.pid -n radicale -u radicale /data/daemons/radicale/.local/bin/radicale

This website uses technical cookies only. No information is shared with anybody or used in any way but provide the website in your browser.

More information