Overview
ricochet is configured using a ricochet-config.toml file.
The configuration file controls OIDC authentication, the default user role, backend execution, and item storage.
When using the default ricochet systemd service, the configuration file is located at /var/lib/ricochet/ricochet-config.toml.
If using the ricochet server cli you can specify the config using ricochet start --config /path/to/ricochet-config.toml.
Example ricochet-config.toml
Section titled “Example ricochet-config.toml”home = "/var/lib/ricochet/data"
[auth]default_role = "developer"require_authentication = false # Set to true to require login for all access
[auth.oidc]issuer_url = "https://auth.example.com"client_id = "your-client-id"client_secret = "your-client-secret"redirect_url = "http://localhost:6188/oauth/callback"Storage
Section titled “Storage”ricochet requires persistent storage for its database, deployments, and encryption keys.
We refer to this location as RICOCHET_HOME.
Directorycontent/ deployment bundles
- …
- .ricochet.json encyption keys
- .ricochet.pub public rsa key
- ricochet.sqlite3 ricochet’s database
The default location of RICOCHET_HOME is the current working directory unless specified by the top-level home configuration in the ricochet-config.toml e.g.
home = "/path/to/ricochet/home" or environment variable.
In the case of the systemd service, the default location is /var/lib/ricochet/data.
Alternatively, use the RICOCHET_HOME environment variable to specify where ricochet should use the home directory.
Environment Variables
Section titled “Environment Variables”Environment variables can override TOML settings using the RICOCHET_ prefix with double underscores (__) for nested keys.
For example to set values from [auth.oidc] the following environment variables can be used:
RICOCHET_AUTH__OIDC__CLIENT_SECRET=secret-valueRICOCHET_AUTH__DEFAULT_ROLE=consumerRICOCHET_AUTH__REQUIRE_AUTHENTICATION=falseConfiguration Precedence
Section titled “Configuration Precedence”ricochet uses the below precedence for configuration values:
- Enviroment variables are prioritized over the
ricochet-config.toml ricochet-config.tomlis prioritized over default values