1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-06-29 16:55:32 +00:00

Use TOML instead of INI highlight syntax

This commit is contained in:
Guillaume Ayoub 2017-05-27 12:41:26 +02:00
parent 247700ebe2
commit ed428fdbc1
4 changed files with 10 additions and 10 deletions

View file

@ -8,7 +8,7 @@ Radicale can be configured with a configuration file or with
command line arguments. command line arguments.
An example configuration file looks like: An example configuration file looks like:
```ini ```toml
[server] [server]
hosts = 0.0.0.0:5232 # Bind all addresses 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. specified.
An example to relax the same-origin policy: An example to relax the same-origin policy:
```ini ```toml
Access-Control-Allow-Origin = * Access-Control-Allow-Origin = *
``` ```

View file

@ -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). [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`: An example configuration to write the log output to the file `/var/log/radicale/log`:
```ini ```toml
[loggers] [loggers]
keys = root keys = root

View file

@ -15,7 +15,7 @@ the user.
This is only useful if you access calendars and address books directly via URL. This is only useful if you access calendars and address books directly via URL.
An example rights file: An example rights file:
```ini ```toml
# The user "admin" can read and write any collection. # The user "admin" can read and write any collection.
[admin] [admin]
user = admin user = admin

View file

@ -49,7 +49,7 @@ $ python3 -m pip install --upgrade bcrypt
``` ```
Authentication can be enabled with the following configuration: Authentication can be enabled with the following configuration:
```ini ```toml
[auth] [auth]
type = htpasswd type = htpasswd
htpasswd_filename = /path/to/users 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 from other computers. This can be changed with the following configuration
options: options:
```ini ```toml
[server] [server]
hosts = 0.0.0.0:5232 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 Data is stored in the folder `/var/lib/radicale/collections`. The path can
be changed with the foloowing configuration: be changed with the foloowing configuration:
```ini ```toml
[storage] [storage]
filesystem_folder = /path/to/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. incorrect authentication attempts. Connections are terminated after a timeout.
The default values should be fine for most scenarios. The default values should be fine for most scenarios.
```ini ```toml
[server] [server]
max_connections = 20 max_connections = 20
max_content_length = 10000000 # 1 Megabyte max_content_length = 10000000 # 1 Megabyte
@ -105,7 +105,7 @@ requirements.
### Linux with systemd as a user ### Linux with systemd as a user
Create the file `~/.config/systemd/user/radicale.service`: Create the file `~/.config/systemd/user/radicale.service`:
```ini ```toml
[Unit] [Unit]
Description=A simple CalDAV (calendar) and CardDAV (contact) server 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. must be writable.
Create the file `/etc/systemd/system/radicale.service`: Create the file `/etc/systemd/system/radicale.service`:
```ini ```toml
[Unit] [Unit]
Description=A simple CalDAV (calendar) and CardDAV (contact) server Description=A simple CalDAV (calendar) and CardDAV (contact) server