mirror of
https://github.com/Kozea/Radicale.git
synced 2025-06-26 16:45:52 +00:00
Revert "Use TOML instead of INI highlight syntax"
This reverts commit ed428fdbc1
.
This commit is contained in:
parent
ed428fdbc1
commit
3281ca71d6
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.
|
command line arguments.
|
||||||
|
|
||||||
An example configuration file looks like:
|
An example configuration file looks like:
|
||||||
```toml
|
```ini
|
||||||
[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:
|
||||||
```toml
|
```ini
|
||||||
Access-Control-Allow-Origin = *
|
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).
|
[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`:
|
||||||
```toml
|
```ini
|
||||||
[loggers]
|
[loggers]
|
||||||
keys = root
|
keys = root
|
||||||
|
|
||||||
|
|
|
@ -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:
|
||||||
```toml
|
```ini
|
||||||
# The user "admin" can read and write any collection.
|
# The user "admin" can read and write any collection.
|
||||||
[admin]
|
[admin]
|
||||||
user = 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:
|
Authentication can be enabled with the following configuration:
|
||||||
```toml
|
```ini
|
||||||
[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:
|
||||||
|
|
||||||
```toml
|
```ini
|
||||||
[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:
|
||||||
|
|
||||||
```toml
|
```ini
|
||||||
[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.
|
||||||
|
|
||||||
```toml
|
```ini
|
||||||
[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`:
|
||||||
```toml
|
```ini
|
||||||
[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`:
|
||||||
```toml
|
```ini
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=A simple CalDAV (calendar) and CardDAV (contact) server
|
Description=A simple CalDAV (calendar) and CardDAV (contact) server
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue