Ajoute la possibilité d'utiliser traefik en ssl
This commit is contained in:
parent
1242d137e6
commit
ed1b8df671
2 changed files with 6 additions and 0 deletions
|
@ -1,2 +1,3 @@
|
||||||
docker_ldapmanager_username_format: "{first_name}.{last_name}"
|
docker_ldapmanager_username_format: "{first_name}.{last_name}"
|
||||||
docker_ldapmanager_ignore_cert_errors: "false"
|
docker_ldapmanager_ignore_cert_errors: "false"
|
||||||
|
docker_ldapmanager_traefik_enable_ssl: false
|
|
@ -14,7 +14,12 @@ services:
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.docker.network=traefik"
|
- "traefik.docker.network=traefik"
|
||||||
|
{% if docker_ldapmanager_traefik_enable_ssl %}
|
||||||
|
- "traefik.http.routers.{{ docker_ldapmanager_service_id }}.entrypoints=websecure"
|
||||||
|
- "traefik.http.routers.{{ docker_ldapmanager_service_id }}.tls"
|
||||||
|
{% else %}
|
||||||
- "traefik.http.routers.{{ docker_ldapmanager_service_id }}.entrypoints=web"
|
- "traefik.http.routers.{{ docker_ldapmanager_service_id }}.entrypoints=web"
|
||||||
|
{% endif %}
|
||||||
- "traefik.http.routers.{{ docker_ldapmanager_service_id }}.rule=Host(`{{ docker_ldapmanager_fqdn }}`)"
|
- "traefik.http.routers.{{ docker_ldapmanager_service_id }}.rule=Host(`{{ docker_ldapmanager_fqdn }}`)"
|
||||||
- "traefik.http.services.{{ docker_ldapmanager_service_id }}.loadbalancer.server.port=80"
|
- "traefik.http.services.{{ docker_ldapmanager_service_id }}.loadbalancer.server.port=80"
|
||||||
networks:
|
networks:
|
||||||
|
|
Loading…
Reference in a new issue