services.thanos.rule.web.prefix-header

NixOS option

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 in: nixos/modules/services/monitoring/thanos.nixView source on NixOS/nixpkgs →