ansible/roles/traefik_docker/templates/traefik_dynamic.yml.j2

16 lines
369 B
Text
Raw Permalink Normal View History

http:
middlewares:
simpleAuthTraefikDashboard:
basicAuth:
users:
{% for item in traefik_basic_auth_users %} - "{{ item }}"{% endfor %}
routers:
api:
rule: "Host(`{{ traefik_dashboard_hostname }}`)"
entrypoints:
- "websecure"
middlewares:
- "simpleAuthTraefikDashboard"
service: "api@internal"