Fix start script for alertmanager when path != ""
This commit is contained in:
parent
96cf8a256a
commit
5aab4c8cca
|
@ -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" }} \
|
||||
|
|
Loading…
Reference in New Issue