diff --git a/configuration.md b/configuration.md index ae3e286a..32e21bae 100644 --- a/configuration.md +++ b/configuration.md @@ -8,7 +8,7 @@ Radicale can be configured with a configuration file or with command line arguments. An example configuration file looks like: -```ini +```toml [server] hosts = 0.0.0.0:5232 # Bind all addresses @@ -251,6 +251,6 @@ In this section additional HTTP headers that are sent to clients can be specified. An example to relax the same-origin policy: -```ini +```toml Access-Control-Allow-Origin = * ``` diff --git a/logging.md b/logging.md index f67931da..bcd2e770 100644 --- a/logging.md +++ b/logging.md @@ -21,7 +21,7 @@ option in the `logging` section. The file format is explained in the [Python Logging Module](https://docs.python.org/3/library/logging.config.html#configuration-file-format). An example configuration to write the log output to the file `/var/log/radicale/log`: -```ini +```toml [loggers] keys = root diff --git a/rights.md b/rights.md index aed141eb..27c262b0 100644 --- a/rights.md +++ b/rights.md @@ -15,7 +15,7 @@ the user. This is only useful if you access calendars and address books directly via URL. An example rights file: -```ini +```toml # The user "admin" can read and write any collection. [admin] user = admin diff --git a/setup.md b/setup.md index 7c6bdec4..61f0d47f 100644 --- a/setup.md +++ b/setup.md @@ -49,7 +49,7 @@ $ python3 -m pip install --upgrade bcrypt ``` Authentication can be enabled with the following configuration: -```ini +```toml [auth] type = htpasswd htpasswd_filename = /path/to/users @@ -62,7 +62,7 @@ The default configuration binds the server to localhost. It can't be reached from other computers. This can be changed with the following configuration options: -```ini +```toml [server] hosts = 0.0.0.0:5232 ``` @@ -74,7 +74,7 @@ More addresses can be added (separated by commas). Data is stored in the folder `/var/lib/radicale/collections`. The path can be changed with the foloowing configuration: -```ini +```toml [storage] filesystem_folder = /path/to/storage ``` @@ -86,7 +86,7 @@ the maximum file size (important for contacts with big photos) and the rate of incorrect authentication attempts. Connections are terminated after a timeout. The default values should be fine for most scenarios. -```ini +```toml [server] max_connections = 20 max_content_length = 10000000 # 1 Megabyte @@ -105,7 +105,7 @@ requirements. ### Linux with systemd as a user Create the file `~/.config/systemd/user/radicale.service`: -```ini +```toml [Unit] Description=A simple CalDAV (calendar) and CardDAV (contact) server @@ -138,7 +138,7 @@ The configuration files must be readable by this user and the storage folder must be writable. Create the file `/etc/systemd/system/radicale.service`: -```ini +```toml [Unit] Description=A simple CalDAV (calendar) and CardDAV (contact) server