2016-04-07 00:00:41 +02:00
|
|
|
# -*- mode: conf -*-
|
|
|
|
# vim:ft=cfg
|
|
|
|
|
|
|
|
# Config file for Radicale - A simple calendar server
|
|
|
|
#
|
|
|
|
# Place it into /etc/radicale/config (global)
|
|
|
|
# or ~/.config/radicale/config (user)
|
|
|
|
#
|
|
|
|
# The current values are the default ones
|
|
|
|
|
|
|
|
|
|
|
|
[server]
|
|
|
|
|
|
|
|
# CalDAV server hostnames separated by a comma
|
|
|
|
# IPv4 syntax: address:port
|
|
|
|
# IPv6 syntax: [address]:port
|
|
|
|
# For example: 0.0.0.0:9999, [::]:9999
|
2022-11-22 13:29:11 +01:00
|
|
|
hosts = localhost:__PORT__
|
2016-04-07 00:00:41 +02:00
|
|
|
|
2022-11-22 13:29:11 +01:00
|
|
|
# Max parallel connections
|
|
|
|
#max_connections = 8
|
2016-04-07 00:00:41 +02:00
|
|
|
|
2022-11-22 13:29:11 +01:00
|
|
|
# Max size of request body (bytes)
|
|
|
|
#max_content_length = 100000000
|
|
|
|
|
|
|
|
# Socket timeout (seconds)
|
|
|
|
#timeout = 30
|
2016-04-07 00:00:41 +02:00
|
|
|
|
|
|
|
# SSL flag, enable HTTPS protocol
|
|
|
|
#ssl = False
|
|
|
|
|
|
|
|
# SSL certificate path
|
2022-11-22 13:29:11 +01:00
|
|
|
#certificate = /etc/ssl/radicale.cert.pem
|
2016-04-07 00:00:41 +02:00
|
|
|
|
|
|
|
# SSL private key
|
2022-11-22 13:29:11 +01:00
|
|
|
#key = /etc/ssl/radicale.key.pem
|
2016-04-07 00:00:41 +02:00
|
|
|
|
2022-11-22 13:29:11 +01:00
|
|
|
# CA certificate for validating clients. This can be used to secure
|
|
|
|
# TCP traffic between Radicale and a reverse proxy
|
|
|
|
#certificate_authority =
|
2016-04-07 00:00:41 +02:00
|
|
|
|
|
|
|
|
|
|
|
[encoding]
|
|
|
|
|
|
|
|
# Encoding for responding requests
|
|
|
|
request = utf-8
|
|
|
|
|
|
|
|
# Encoding for storing local collections
|
|
|
|
stock = utf-8
|
|
|
|
|
|
|
|
|
|
|
|
[auth]
|
|
|
|
|
|
|
|
# Authentication method
|
2022-11-22 13:29:11 +01:00
|
|
|
# Value: none | htpasswd | remote_user | http_x_remote_user
|
|
|
|
#type = none
|
|
|
|
type = htpasswd
|
2016-04-07 00:00:41 +02:00
|
|
|
|
|
|
|
# Htpasswd filename
|
2022-11-22 13:29:11 +01:00
|
|
|
htpasswd_filename = /etc/radicale/users
|
2016-04-07 00:00:41 +02:00
|
|
|
|
|
|
|
# Htpasswd encryption method
|
2022-11-22 13:29:11 +01:00
|
|
|
# Value: plain | bcrypt | md5
|
|
|
|
# bcrypt requires the installation of radicale[bcrypt].
|
|
|
|
htpasswd_encryption = bcrypt
|
|
|
|
|
|
|
|
# Incorrect authentication delay (seconds)
|
|
|
|
#delay = 1
|
|
|
|
|
|
|
|
# Message displayed in the client when a password is needed
|
|
|
|
#realm = Radicale - Password Required
|
|
|
|
|
|
|
|
# LDAP doesn't work for now...
|
|
|
|
# type = radicale_auth_ldap
|
2016-04-07 00:00:41 +02:00
|
|
|
|
|
|
|
# LDAP server URL, with protocol and port
|
2022-11-22 13:29:11 +01:00
|
|
|
# ldap_url = ldap://localhost:389/
|
2016-04-07 00:00:41 +02:00
|
|
|
|
|
|
|
# LDAP base path
|
2022-11-22 13:29:11 +01:00
|
|
|
# ldap_base = ou=users,dc=yunohost,dc=org
|
2016-04-07 00:00:41 +02:00
|
|
|
|
|
|
|
# LDAP login attribute
|
2022-11-22 13:29:11 +01:00
|
|
|
# ldap_attribute = uid
|
2016-04-07 00:00:41 +02:00
|
|
|
|
|
|
|
# LDAP filter string
|
|
|
|
# placed as X in a query of the form (&(...)X)
|
|
|
|
# example: (objectCategory=Person)(objectClass=User)(memberOf=cn=calenderusers,ou=users,dc=example,dc=org)
|
2022-11-22 13:29:11 +01:00
|
|
|
# ldap_filter =
|
2016-04-07 00:00:41 +02:00
|
|
|
|
|
|
|
# LDAP dn for initial login, used if LDAP server does not allow anonymous searches
|
|
|
|
# Leave empty if searches are anonymous
|
2022-11-22 13:29:11 +01:00
|
|
|
# ldap_binddn =
|
2016-04-07 00:00:41 +02:00
|
|
|
|
|
|
|
# LDAP password for initial login, used with ldap_binddn
|
2022-11-22 13:29:11 +01:00
|
|
|
# ldap_password =
|
2016-04-07 00:00:41 +02:00
|
|
|
|
|
|
|
# LDAP scope of the search
|
2022-11-22 13:29:11 +01:00
|
|
|
# ldap_scope = OneLevel
|
2016-04-07 00:00:41 +02:00
|
|
|
|
2022-11-22 13:29:11 +01:00
|
|
|
# LDAP extended option
|
|
|
|
# If the server is samba, ldap_support_extended is should be no
|
|
|
|
# ldap_support_extended = yes
|
2016-04-07 00:00:41 +02:00
|
|
|
|
|
|
|
[rights]
|
|
|
|
|
|
|
|
# Rights backend
|
2022-11-22 13:29:11 +01:00
|
|
|
# Value: none | authenticated | owner_only | owner_write | from_file
|
|
|
|
#type = owner_only
|
2016-04-07 00:00:41 +02:00
|
|
|
|
|
|
|
# File for rights management from_file
|
|
|
|
file = /etc/radicale/rights
|
|
|
|
|
|
|
|
|
|
|
|
[storage]
|
|
|
|
|
|
|
|
# Storage backend
|
2022-11-22 13:29:11 +01:00
|
|
|
# Value: multifilesystem | multifilesystem_nolock
|
|
|
|
#type = multifilesystem
|
2016-04-07 00:00:41 +02:00
|
|
|
|
|
|
|
# Folder for storing local collections, created if not present
|
|
|
|
filesystem_folder = __FINALPATH__/collections
|
|
|
|
|
2022-11-22 13:29:11 +01:00
|
|
|
# Delete sync token that are older (seconds)
|
|
|
|
#max_sync_token_age = 2592000
|
|
|
|
|
|
|
|
# Command that is run after changes to storage
|
|
|
|
# Example: ([ -d .git ] || git init) && git add -A && (git diff --cached --quiet || git commit -m "Changes by "%(user)s)
|
|
|
|
#hook =
|
|
|
|
|
|
|
|
|
|
|
|
[web]
|
|
|
|
|
|
|
|
# Web interface backend
|
|
|
|
# Value: none | internal
|
|
|
|
#type = internal
|
2016-04-07 00:00:41 +02:00
|
|
|
|
|
|
|
|
|
|
|
[logging]
|
|
|
|
|
2022-11-22 13:29:11 +01:00
|
|
|
# Threshold for the logger
|
|
|
|
# Value: debug | info | warning | error | critical
|
|
|
|
#level = warning
|
|
|
|
|
|
|
|
# Don't include passwords in logs
|
|
|
|
#mask_passwords = True
|
2016-04-07 00:00:41 +02:00
|
|
|
|
|
|
|
|
|
|
|
[headers]
|
|
|
|
|
|
|
|
# Additional HTTP headers
|
|
|
|
Access-Control-Allow-Origin = *
|
|
|
|
Access-Control-Allow-Methods = GET, POST, OPTIONS, PROPFIND, PROPPATCH, REPORT, PUT, MOVE, DELETE, LOCK, UNLOCK
|
|
|
|
Access-Control-Allow-Headers = User-Agent, Authorization, Content-type, Depth, If-match, If-None-Match, Lock-Token, Timeout, Destination, Overwrite, X-clie$
|
|
|
|
Access-Control-Expose-Headers = Etag
|
2022-11-22 13:29:11 +01:00
|
|
|
|
|
|
|
#type = LDAP
|
|
|
|
#ldap_url = ldap://localhost:389/
|
|
|
|
#ldap_base = ou=users,dc=yunohost,dc=org
|
|
|
|
#ldap_attribute = uid
|
|
|
|
#ldap_filter =
|
|
|
|
#ldap_scope = OneLevel
|