fix: tls and admin secure
This commit is contained in:
parent
fdd4757237
commit
ad071c7be3
2 changed files with 10 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
]
|
||||
|
||||
|
||||
|
|
Reference in a new issue