Fix start script for alertmanager when path != ""

This commit is contained in:
Daniel Berteaud 2024-03-26 13:15:25 +01:00
parent 96cf8a256a
commit 5aab4c8cca
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ exec alertmanager \
--config.file=/secrets/alertmanager.yml \
--storage.path=/data \
--web.external-url=[[ .public_url ]] \
--web.route-prefix=[[ if eq "" (urlParse .public_url).Path ]]/[[ else ]](urlParse .public_url).Path[[ end ]] \
--web.route-prefix=[[ if eq "" (urlParse .public_url).Path ]]/[[ else ]][[ (urlParse .public_url).Path ]][[ end ]] \
--web.listen-address=0.0.0.0:{{ env "NOMAD_ALLOC_PORT_web-tls" }} \
--cluster.listen-address=0.0.0.0:{{ env "NOMAD_ALLOC_PORT_cluster" }} \
--cluster.advertise-address={{ env "NOMAD_HOST_ADDR_cluster" }} \