services.thanos.rule.web.prefix-header
Name of HTTP request header used for dynamic prefixing of UI links and redirects.
This option is ignored if the option
web.external-prefix is set.
Security risk: enable this option only if a reverse proxy in front of thanos is resetting the header.
The header X-Forwarded-Prefix can be useful, for
example, if Thanos UI is served via Traefik reverse proxy with
PathPrefixStrip option enabled, which sends the
stripped prefix value in X-Forwarded-Prefix
header. This allows thanos UI to be served on a sub-path.
- Type
null or string- Default
null- Declared
- <nixpkgs/nixos/modules/services/monitoring/thanos.nix>