traefik dashboard added

This commit is contained in:
christian 2024-05-19 13:25:50 +02:00
parent f6b35de6ef
commit c4faee7fd5
2 changed files with 14 additions and 3 deletions

View File

@ -35,3 +35,14 @@
stsPreload= false
stsSeconds= 15768000
# Dynamic Configuration
[http.routers.my-api]
rule = "Host(`traefik.herrmann.es`) && (PathPrefix(`/api`) || PathPrefix(`/dashboard`))"
service = "api@internal"
middlewares = ["auth"]
[http.middlewares.auth.basicAuth]
users = [
"dashboard:$apr1$15pgxrml$JcVZtleLvl2FfXa9fZjdB.",
]

View File

@ -10,7 +10,8 @@
address = ":443"
[api]
insecure = true
# insecure = true
dashboard = true
[providers]
# Enable Docker configuration backend
@ -51,4 +52,3 @@
# Required
#
entryPoint = "web"