role_radicale/templates/radicale.service.j2

28 lines
631 B
Plaintext
Raw Permalink Normal View History

2023-05-24 07:18:31 +00:00
# {{ ansible_managed }}
[Unit]
Description=A simple CalDAV (calendar) and CardDAV (contact) server
After=network.target
Requires=network.target
[Service]
Environment="RADICALE_CONFIG={{ radicale_root_path }}/radicale.conf"
2024-06-27 16:51:29 +00:00
ExecStart=/usr/local/bin/radicale
2023-05-24 07:18:31 +00:00
Restart=on-failure
User=radicale
# Deny other users access to the calendar data
UMask=0027
# Optional security settings
PrivateTmp=true
ProtectSystem=strict
ProtectHome=true
PrivateDevices=true
ProtectKernelTunables=true
ProtectKernelModules=true
ProtectControlGroups=true
NoNewPrivileges=true
ReadWritePaths={{ radicale_root_path }}
[Install]
WantedBy=multi-user.target