fix: tls and admin secure

This commit is contained in:
Marc 2022-12-04 11:36:37 -05:00
parent fdd4757237
commit ad071c7be3
Signed by: marc
GPG key ID: 048E042F22B5DC79
2 changed files with 10 additions and 2 deletions

View file

@ -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

View file

@ -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"
]