From ad071c7be3644a5049ac068a0ae79306356164d6 Mon Sep 17 00:00:00 2001 From: Marc Cataford Date: Sun, 4 Dec 2022 11:36:37 -0500 Subject: [PATCH] fix: tls and admin secure --- deluge/docker-compose.yml | 2 +- traefik/traefik_dynamic.toml | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/deluge/docker-compose.yml b/deluge/docker-compose.yml index a080cd6..c4b540f 100644 --- a/deluge/docker-compose.yml +++ b/deluge/docker-compose.yml @@ -15,7 +15,7 @@ services: - 6881:6881/udp restart: unless-stopped labels: - - traefik.http.routers.deluge.rule=PathPrefix(`/deluge/`) + - traefik.http.routers.deluge.rule=Host(`spadinaistan.karnov.club`) && PathPrefix(`/deluge/`) - traefik.http.routers.deluge.tls=true - traefik.http.routers.deluge.tls.certresolver=lets-encrypt - traefik.http.middlewares.deluge-stripprefix.stripprefix.prefixes=/deluge diff --git a/traefik/traefik_dynamic.toml b/traefik/traefik_dynamic.toml index bc2d41f..c3f0772 100644 --- a/traefik/traefik_dynamic.toml +++ b/traefik/traefik_dynamic.toml @@ -1,6 +1,14 @@ [http.routers.api] rule = "Host(`spadinaistan.karnov.club`)" - entrypoints = ["web"] + entrypoints = ["websecure"] + middlewares = ["simpleAuth"] service = "api@internal" [http.routers.api.tls] certResolver = "lets-encrypt" + +[http.middlewares.simpleAuth.basicAuth] + users = [ + "admin:$apr1$.69ctJC9$hWFBopMkCUHgxe5clVf4H0" + ] + +