From 0353114e6fe7919f6f83ac3c5852b4e391235ca4 Mon Sep 17 00:00:00 2001 From: emile Date: Thu, 10 Oct 2019 12:58:24 -0400 Subject: cloudflare wildcard --- docker-compose.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'docker-compose.yml') diff --git a/docker-compose.yml b/docker-compose.yml index 5b75a28..d982fd2 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -10,7 +10,9 @@ services: - "--providers.docker.exposedbydefault=false" - "--entrypoints.web.address=:80" - "--entrypoints.websecure.address=:443" - - "--certificatesresolvers.mytlschallenge.acme.tlschallenge=true" + - "--certificatesresolvers.mytlschallenge.acme.dnschallenge=true" + - "--certificatesresolvers.mytlschallenge.acme.dnschallenge.delaybeforecheck=0" + - "--certificatesresolvers.mytlschallenge.acme.dnschallenge.provider=cloudflare" - "--certificatesresolvers.mytlschallenge.acme.email=hanemile@protonmail.com" - "--certificatesresolvers.mytlschallenge.acme.storage=/letsencrypt/acme.json" - "--metrics.prometheus=true" -- cgit 1.4.1 From 520949754c8f033a864cb8ed0b194e5faa3d4ff5 Mon Sep 17 00:00:00 2001 From: emile Date: Thu, 10 Oct 2019 12:58:55 -0400 Subject: basicauth --- docker-compose.yml | 3 +++ 1 file changed, 3 insertions(+) (limited to 'docker-compose.yml') diff --git a/docker-compose.yml b/docker-compose.yml index d982fd2..2f0cf27 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -23,14 +23,17 @@ services: volumes: - "./letsencrypt:/letsencrypt" - "/var/run/docker.sock:/var/run/docker.sock:ro" + - "./traefik_users:/traefik_users" labels: - "traefik.enable=true" - "traefik.http.routers.traefik.entrypoints=web" - "traefik.http.routers.traefik.rule=Host(`traefik.${HOSTNAME}`)" + - "traefik.http.middlewares.traefik-auth.basicauth.usersFile=/traefik_users" - "traefik.http.middlewares.traefik-https-redirect.redirectscheme.scheme=https" - "traefik.http.routers.traefik.middlewares=traefik-https-redirect" - "traefik.http.routers.traefik-secure.entrypoints=websecure" - "traefik.http.routers.traefik-secure.rule=Host(`traefik.${HOSTNAME}`)" + - "traefik.http.routers.traefik-secure.middlewares=traefik-auth" - "traefik.http.routers.traefik-secure.tls=true" - "traefik.http.routers.traefik-secure.tls.certresolver=mytlschallenge" - "traefik.http.routers.traefik-secure.service=api@internal" -- cgit 1.4.1