Ajout authentification et tls sur nodeexporter via traefik
This commit is contained in:
parent
dbf038ff37
commit
cf709f5049
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ services:
|
||||||
traefik.http.routers.cadvisor.entrypoints: cadvisor
|
traefik.http.routers.cadvisor.entrypoints: cadvisor
|
||||||
traefik.http.routers.cadvisor.tls: true
|
traefik.http.routers.cadvisor.tls: true
|
||||||
traefik.http.routers.cadvisor.rule: Host(`{{ ansible_host }}`)
|
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.routers.cadvisor.middlewares: cadvisor_auth
|
||||||
traefik.http.middlewares.cadvisor_auth.basicauth.users: "{{ docker_cadvisor_auth_user }}:{{ docker_cadvisor_auth_password }}"
|
traefik.http.middlewares.cadvisor_auth.basicauth.users: "{{ docker_cadvisor_auth_user }}:{{ docker_cadvisor_auth_password }}"
|
||||||
networks:
|
networks:
|
||||||
|
|
Loading…
Reference in a new issue