Allow kuma to have multiple urls
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
f2cd3c991b
commit
642a5b29ed
@ -152,7 +152,9 @@
|
||||
service: kuma
|
||||
vars:
|
||||
service_name: "tobias"
|
||||
url: "status.tobiasmanske.de"
|
||||
urls:
|
||||
- "status.tobiasmanske.de"
|
||||
- "monitor.chaoswg.org"
|
||||
|
||||
- name: Setup Monitoring Kuma 2
|
||||
hosts: mon1.hel1.chaoswg.org
|
||||
@ -163,5 +165,5 @@
|
||||
service: kuma
|
||||
vars:
|
||||
service_name: "istannen"
|
||||
url: "monitor.ialistannen.de"
|
||||
urls: [ "monitor.ialistannen.de"]
|
||||
...
|
||||
|
@ -1,5 +1,5 @@
|
||||
{% set _name = service_name|default("kuma") %}
|
||||
{% set _url = url|default(kuma.url)|mandatory %}
|
||||
{% set _urls = urls|default(kuma.urls)|mandatory %}
|
||||
---
|
||||
services:
|
||||
kuma:
|
||||
@ -9,7 +9,7 @@ services:
|
||||
- data:/app/data
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.kuma-{{ _name }}.rule=Host(`{{ _url | mandatory }}`)"
|
||||
- "traefik.http.routers.kuma-{{ _name }}.rule={{ _urls | map('regex_replace', '^(.*)$', 'Host(`\\1`)') | join(' || ') }}"
|
||||
- "traefik.http.routers.kuma-{{ _name }}.entryPoints=websecure"
|
||||
- "traefik.http.services.kuma-{{ _name }}.loadbalancer.server.port=3001"
|
||||
networks:
|
||||
|
Loading…
Reference in New Issue
Block a user