KidsWiki

Radicale

CalDAV and CardDAV Server

Radicale

Install via python3:

sudo /usr/bin/env python3 -m pip install --upgrade radicale --break-system-packages
sudo useradd --system --user-group --home-dir / --shell /sbin/nologin radicale
sudo mkdir -p /var/lib/radicale/collections 
sudo chown -R radicale:radicale /var/lib/radicale/collections

config in /etc/radicale

[server]
hosts = 0.0.0.0:5232, [::]:5232

[auth]
type = htpasswd
htpasswd_filename = /etc/radicale/users
htpasswd_encryption = sha256

[storage]
filesystem_folder = /var/lib/radicale/collections

users in /etc/radicale

sudo htpasswd -c2 /etc/radicale/users kid

systemd config

[Unit]
Description=A simple CalDAV (calendar) and CardDAV (contact) server
After=network.target
Requires=network.target

[Service]
ExecStart=/usr/bin/env python3 -m radicale
Restart=on-failure
User=radicale
UMask=0027
PrivateTmp=true
ProtectSystem=strict
ProtectHome=true
PrivateDevices=true
ProtectKernelTunables=true
ProtectKernelModules=true
ProtectControlGroups=true
NoNewPrivileges=true
ReadWritePaths=/var/lib/radicale/collections

[Install]
WantedBy=multi-user.target