Skip to content
Menu
Documentationleilani.json reference
Configuration

leilani.json reference

Place one leilani.json at the Cargo workspace root, alongside its Cargo.toml. It configures the whole Leilani workspace. Use valid JSON, without comments or trailing commas. Commit changes and push to deploy them; Config shows the parsed configuration and is read-only.

Top-level configuration fields
FieldType / defaultBehavior
postgresBoolean; falseEnables a dedicated PostgreSQL instance on deployment. See PostgreSQL for connection settings and persistence.
packagesObject; {}Selects the executables to launch and their arguments and restart policies.
httpObject; defaults belowMaps public hostnames to application ports and configures static files and request body limits.
usersArray; []Defines application users for HTTP Basic authentication.
rulesArray; []Requires authentication and roles for matching HTTP requests. With no matching rule, Leilani permits the request.

All five top-level fields are optional. An empty configuration starts no packages and defines no HTTP listeners. There is no separate domains field: hostnames belong in http.binds.