From 086c76154d32e3ec8584d09eb19e59e6eff7f4a0 Mon Sep 17 00:00:00 2001 From: LRVT <21357789+l4rm4nd@users.noreply.github.com> Date: Sun, 19 Feb 2023 13:49:32 +0100 Subject: [PATCH] Update docker-compose.yml --- traefik/docker-compose.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/traefik/docker-compose.yml b/traefik/docker-compose.yml index ef78226..e44b317 100644 --- a/traefik/docker-compose.yml +++ b/traefik/docker-compose.yml @@ -15,13 +15,13 @@ services: - proxy environment: - TZ=Europe/Berlin - #- CF_DNS_API_TOKEN=MyCloudflareApiToken # change this + - CF_DNS_API_TOKEN=MyCloudflareApiToken # change this labels: - traefik.enable=true - traefik.http.routers.api.rule=Host(`traefik.example.com`) # Define the subdomain for the traefik dashboard. - traefik.http.routers.api.service=api@internal # Enable Traefik API. - #- traefik.http.routers.api.middlewares=local-ipwhitelist@file,basic-auth@file - - traefik.http.middlewares.basic-auth-global.basicauth.users=admin:$$apr1$$epoKf5li$$QfTMJZOCS/halv3CiIUEu0 # protect the traefik dashboard by basic auth (pw=password) + - traefik.http.routers.api.middlewares=local-ipwhitelist@file,basic-auth@file # protect dashboard with basic auth and restrict access to private class subnets only + #- traefik.http.middlewares.basic-auth-global.basicauth.users=admin:$$apr1$$epoKf5li$$QfTMJZOCS/halv3CiIUEu0 # protect the traefik dashboard by basic auth (pw=password) restart: always extra_hosts: - host.docker.internal:172.17.0.1