diff --git a/dockers/traefik/conf/allow_ip.yml.sample b/dockers/traefik/allow_ip.yml.sample similarity index 81% rename from dockers/traefik/conf/allow_ip.yml.sample rename to dockers/traefik/allow_ip.yml.sample index 7d7f5bc..cf0fa44 100644 --- a/dockers/traefik/conf/allow_ip.yml.sample +++ b/dockers/traefik/allow_ip.yml.sample @@ -1,3 +1,5 @@ +#garnir le fichier (enlever le 0.0.0.0/0 pour admin par exemple) et le placer +#dans /conf http: middlewares: ipwhitelist: diff --git a/dockers/traefik/docker-compose.tmpl.yml.dist b/dockers/traefik/docker-compose.tmpl.yml.dist index 5961311..35ae6dd 100644 --- a/dockers/traefik/docker-compose.tmpl.yml.dist +++ b/dockers/traefik/docker-compose.tmpl.yml.dist @@ -20,7 +20,7 @@ services: - TRAEFIK_ENTRYPOINTS_web_HTTP_REDIRECTIONS_ENTRYPOINT_TO=websecure - TRAEFIK_ENTRYPOINTS_websecure_ADDRESS=:443 - TRAEFIK_ENTRYPOINTS_websecure_HTTP_TLS_CERTRESOLVER=letsencrypt - - TRAEFIK_ENTRYPOINTS_websecure_HTTP_MIDDLEWARES=hsts@file,test-ipwhitelist@file + - TRAEFIK_ENTRYPOINTS_websecure_HTTP_MIDDLEWARES=hsts@file,test-ipallowlist@file - TRAEFIK_CERTIFICATESRESOLVERS_letsencrypt_ACME_EMAIL=admin@${domain} - TRAEFIK_CERTIFICATESRESOLVERS_letsencrypt_ACME_CASERVER=${acme_server} - TRAEFIK_CERTIFICATESRESOLVERS_letsencrypt_ACME_STORAGE=/letsencrypt/acme.json @@ -35,7 +35,7 @@ services: - "traefik.http.routers.traefik_https.rule=Host(`${site}.${domain}`)" - "traefik.http.routers.traefik_https.entrypoints=websecure" - "traefik.http.routers.traefik_https.service=api@internal" - - "traefik.http.routers.traefik_https.middlewares=test-adminipwhitelist@file,traefik-auth" + - "traefik.http.routers.traefik_https.middlewares=test-adminipallowlist@file,traefik-auth" - "traefik.http.middlewares.traefik-auth.basicauth.usersfile=/etc/traefik/passfile" networks: diff --git a/dockers/traefik/reload.sh b/dockers/traefik/reload.sh deleted file mode 100755 index bbe95cf..0000000 --- a/dockers/traefik/reload.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash - -# Do nothing -# Théoriquement traefik gère tout seul sauf les changements dans le traefik.yml \ No newline at end of file