Ajout authentification et tls sur nodeexporter via traefik

This commit is contained in:
Navas 2024-12-25 22:13:31 +01:00
parent dbf038ff37
commit cf709f5049

View file

@ -32,7 +32,7 @@ services:
traefik.http.routers.cadvisor.entrypoints: cadvisor
traefik.http.routers.cadvisor.tls: true
traefik.http.routers.cadvisor.rule: Host(`{{ ansible_host }}`)
traefik.http.services.cadvisor.loadbalancer.server.port: 9100
traefik.http.services.cadvisor.loadbalancer.server.port: 8080
traefik.http.routers.cadvisor.middlewares: cadvisor_auth
traefik.http.middlewares.cadvisor_auth.basicauth.users: "{{ docker_cadvisor_auth_user }}:{{ docker_cadvisor_auth_password }}"
networks: