Use radicale from virtualenv
This commit is contained in:
parent
22ee002aee
commit
55c618ec9c
3 changed files with 45 additions and 5 deletions
16
templates/radicale/conf.j2
Normal file
16
templates/radicale/conf.j2
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
# {{ ansible_managed }} {{ ansible_date_time.time }} {{ ansible_date_time.date }}
|
||||
#
|
||||
|
||||
[server]
|
||||
ssl = True
|
||||
certificate = /etc/ssl/localcerts/radicale/server_cert.pem
|
||||
key = /etc/ssl/localcerts/radicale/server_key.pem
|
||||
certificate_authority = /etc/ssl/localcerts/radicale/client_cert.pem
|
||||
hosts = {{ radicale_listen_addres }}:{{ radicale_port }}
|
||||
|
||||
[storage]
|
||||
filesystem_folder = /etc/radicale/collections
|
||||
|
||||
[auth]
|
||||
type = http_x_remote_user
|
||||
|
||||
23
templates/radicale/service.j2
Normal file
23
templates/radicale/service.j2
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
# {{ ansible_managed }} {{ ansible_date_time.time }} {{ ansible_date_time.date }}
|
||||
|
||||
[Unit]
|
||||
Description=A simple CalDAV (calendar) and CardDAV (contact) server
|
||||
After=network.target
|
||||
Requires=network.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/home/sonny/.local/share/radicale/env/bin/radicale
|
||||
Restart=on-failure
|
||||
UMask=0027
|
||||
PrivateTmp=true
|
||||
ProtectSystem=strict
|
||||
ProtectHome=true
|
||||
PrivateDevices=true
|
||||
ProtectKernelTunables=true
|
||||
ProtectKernelModules=true
|
||||
ProtectControlGroups=true
|
||||
NoNewPrivileges=true
|
||||
ReadWritePaths=/etc/radicale/collections
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Loading…
Add table
Add a link
Reference in a new issue