Configuration Reference
Liwan can be configured using a configuration file or environment variables. Configuration files are written in TOML format.
Liwan tries to load the configuration file from the current directory (or ~/.config/liwan/liwan.config.toml
on linux/macos) by default.
Alternatively, you can use the --config
flag or the LIWAN_CONFIG
environment variable to specify a path to the configuration file.
To generate a default configuration file, you can run liwan generate-config
(or liwan generate-config -o OUTPUT_PATH
), which will create a liwan.config.toml
file in the current directory with the following content:
Configuration Options
TOML Key | Environment Variable | Default |
---|---|---|
base_url | LIWAN_BASE_URL | (none) |
data_dir | LIWAN_DATA_DIR | ./liwan-data |
port | LIWAN_PORT | 9042 |
disable_favicons | LIWAN_DISABLE_FAVICONS | false |
geoip.maxmind_account_id | LIWAN_MAXMIND_ACCOUNT_ID | (none) |
geoip.maxmind_license_key | LIWAN_MAXMIND_LICENSE_KEY | (none) |
geoip.maxmind_edition | LIWAN_MAXMIND_EDITION | GeoLite2-City |
geoip.maxmind_db_path | LIWAN_MAXMIND_DB_PATH | (none) |
duckdb.memory_limit | LIWAN_DUCKDB_MEMORY_LIMIT | (none) |
duckdb.threads | LIWAN_DUCKDB_THREADS | (core count) |