# 2023-05-24 # Public facing base URL of the service # This setting is required for the "Silence" feature. base-url https://ntfyforwarder.domain.com # http listen address http-address :6080 # Log level (either debug, info, warning, error) log-level warning # When multiple alerts are grouped together by Alertmanager, they can either be sent # each on their own (single mode) or be kept together (multi mode) (either single or multi; default is single) alert-mode single labels { order "severity,instance" severity "critical" { priority 5 tags "rotating_light" } severity "info" { priority 1 } } # Settings for resolved alerts resolved { tags "resolved,partying_face" } ntfy { # URL of the ntfy topic - required topic http://ntfy:8050/alerts } alertmanager { # If set, the ntfy message will contain a "Silence" button, which can be used # to create a silence via the Alertmanager API. Because of limitations in ntfy, # the request will be proxied through ntfy-alertmanager. Therefore ntfy-alertmanager # needs to be exposed to external network requests and base-url has to be set. # # When alert-mode is set to "single" all alert labels will be used to create the silence. # When it is "multi" common labels between all the alerts will be used. WARNING: This # could silence unwanted alerts. #silence-duration 24h # By default the Alertmanager URL gets parsed from the webhook. In case that # Alertmanger is not reachable under that URL, it can be overwritten here. } # When the alert-mode is set to single, ntfy-alertmanager will cache each single alert # to avoid sending recurrences. cache { # The type of cache that will be used (either memory or redis; default is memory). type memory # How long messages stay in the cache for duration 24h # Memory cache settings # Interval in which the cache is cleaned up cleanup-interval 1h # Redis cache settings # URL to connect to redis (default: redis://localhost:6379) redis-url redis://redis:6789 }