mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-13 22:52:22 +00:00
1.2 KiB
1.2 KiB
Installation
Manual
cargo install --locked --git https://github.com/lennart-k/rustical
Docker
docker run \
-p 4000:4000 \
-v YOUR_DATA_DIR:/var/lib/rustical/ \
-v YOUR_PRINCIPALS_TOML:/etc/rustical/principals.toml \
-v YOUR_CONFIG_TOML:/etc/rustical/config.toml \ # (1)!
-e RUSTICAL__CONFIG_OPTION="asd" \ # (2)!
ghcr.io/lennart-k/rustical
- Mount config file
- Alternatively specify configuration using environment variables
Configuration
RustiCal can be configured using either a config.toml file or environent variables.
To see all configuration options available you can browse the Cargo docs.
TOML
You can generate a default config.toml configuration using
rustical gen-config
Environment variables
The options in config.toml can also be configured using environment variables.
Names translate the following:
[data_store.toml]
path = "asd"
becomes RUSTICAL_DATA_STORE__TOML__PATH.
Every variable is
- uppercase
- prefixed by
RUSTICAL_ - Dots become
__ - Arrays are JSON-encoded