Redis Configuration
monetr is migrating away from using this configuration to a new config layout, this configuration will continue to work for the next few releases but will eventually break and default to an in memory cache setup. If you're setup requires a shared cache server then please add the new cache block to your configuration file. If your setup does not require a shared cache server then no action is required from you, and monetr will simply default to the in memory cache in an upcoming release.
monetr can use any cache that is compatible with Redis's wire protocol. In the provided Docker compose file, local development environment as well as in production valkey is used.
monetr only caches a few things, and for self-hosting it may not even be necessary to run a dedicated cache at this time as monetr also leverages miniredis when a cache server has not been configured. For a single monetr server this embedded "Redis" is sufficient.
To configure a dedicated cache server though:
monetr watches the certificate files for changes, so certificates can be rotated without restarting the server. New
connections to the cache server will use the new certificates right away. The TLS settings are ignored when enabled is
false.
The following environment variables map to the following configuration file fields. Each field is documented below.