mirror of
https://github.com/Kozea/Radicale.git
synced 2025-06-26 16:45:52 +00:00
Use TOML instead of INI highlight syntax
This commit is contained in:
parent
247700ebe2
commit
ed428fdbc1
4 changed files with 10 additions and 10 deletions
|
@ -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 = *
|
||||
```
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
12
setup.md
12
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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue