aboutsummaryrefslogtreecommitdiffstats
path: root/roles/radicale/templates/config.j2
blob: 182cad1fbbd210b07936ae233bb7c469b4af9cd4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#
# /usr/local/etc/radicale/config
# Radicale - A simple calendar and contact server
#
# http://radicale.org/
# https://github.com/Kozea/Radicale
#
# Aaron LI
# Created: 2017-04-27
#


# Not needed when using uWSGI
[server]
hosts = 127.0.0.1:5232
daemon = True

[auth]

# Authentication method
# Value: none | htpasswd | remote_user | http_x_remote_user
#
# * None
#   Allows all usernames and passwords.  It also disables rights checking.
# * htpasswd
#   Use an Apache htpasswd file to store usernames and passwords.
# * remote_user
#   Takes the user name from the REMOTE_USER environment variable and
#   disables HTTP authentication.  This can be used to provide the user
#   name from a WSGI server.
# * http_x_remote_user
#   Takes the user name from the "X-Remote-User" HTTP header and disables
#   HTTP authentication.  This can be used to provide the user name from
#   a reverse proxy. 
#
#type = http_x_remote_user
type = remote_user


# Rights backend
[rights]

# Value: none | authenticated | owner_only | owner_write | from_file
#
# * None          : Everybody (including anonymous users) has read and
#                   write access to all collections;
# * authenticated : An authenticated users has read and write access
#                   to all collections, anonymous users have no access
#                   to these collections;
# * owner_only    : Only owners have read and write access to their
#                   own collections. The other users, authenticated or
#                   anonymous, have no access to these collections;
# * owner_write   : Authenticated users have read access to all collections,
#                   but only owners have write access to their own
#                   collections.  And anonymous users have no access;
# * from_file     : Rights are based on a regex-based file whose name
#                   is specified in this config file: [right]/file
#
type = owner_only


# Storage backend
[storage]

type = multifilesystem
filesystem_folder = {{ radicale.home }}

# Command that is run after changes to storage
# See: http://radicale.org/versioning/
hook = ([ -d .git ] || /usr/local/bin/git init) && /usr/local/bin/git add -A && (/usr/local/bin/git diff --cached --quiet || /usr/local/bin/git commit -m "Changes by %(user)s")


# Web interface backend
[web]

# Value: none | internal
#
# * none : Just shows the message "Radicale works!".
# * internal : Allows creation and management of address books and calendars.
#
#type = internal
type = none


[logging]
config = {{ radicale.etcdir }}/logging
# The logging config file just specified will provide finer controls, so
# just set the default logging level to DEBUG.
debug = True