Skip to main content

Module config

Module config 

Source
Expand description

[traffic] settings (RWS_CONFIG_TRAFFIC_*).

Constants§

RWS_CONFIG_TRAFFIC_ENABLED
RWS_CONFIG_TRAFFIC_EXCLUDE
RWS_CONFIG_TRAFFIC_PERSIST
RWS_CONFIG_TRAFFIC_RETENTION_DAYS

Functions§

enabled_setting
enabled: Some(false) turns counting off even with the admin API on; None when unset.
exclude
exclude: exact paths not counted (comma-separated); default the health, readiness and metrics endpoints.
persist_path
persist: the file the counts are saved to. Unset: traffic.json next to the certificate (the ACME certificate’s directory, else the TLS certificate’s) — the state directory; without either, nothing is saved. "off": not saved.
retention_days
retention_days: 1–90, default 30.