summaryrefslogtreecommitdiff
path: root/roles/monitoring/alerta/templates
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2024-04-29 21:26:15 +0200
committerChristian Pointner <equinox@spreadspace.org>2024-04-29 21:26:15 +0200
commit10c2b1a4f2f2cb14337a91f136d152ec196aa5a0 (patch)
treec398679dd9833ecf568d7657b835eef3a7c383a8 /roles/monitoring/alerta/templates
parentcore/base: cleanup for cloud-init leftovers and configure timezone (diff)
monitoiring/alerta: support publishment via nginx vhost
Diffstat (limited to 'roles/monitoring/alerta/templates')
-rw-r--r--roles/monitoring/alerta/templates/pod-spec.yml.j23
1 files changed, 3 insertions, 0 deletions
diff --git a/roles/monitoring/alerta/templates/pod-spec.yml.j2 b/roles/monitoring/alerta/templates/pod-spec.yml.j2
index 9ce20988..5523b621 100644
--- a/roles/monitoring/alerta/templates/pod-spec.yml.j2
+++ b/roles/monitoring/alerta/templates/pod-spec.yml.j2
@@ -29,6 +29,9 @@ containers:
{% endif %}
ports:
- containerPort: 8080
+{% if alerta_web_nginx_vhost is defined %}
+ hostIP: "127.0.0.1"
+{% endif %}
hostPort: {{ alerta_web_port }}
- name: postgresql