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 stsPreload= false
stsSeconds= 15768000 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,8 +10,9 @@
address = ":443" address = ":443"
[api] [api]
insecure = true # insecure = true
dashboard = true
[providers] [providers]
# Enable Docker configuration backend # Enable Docker configuration backend
[providers.docker] [providers.docker]
@ -51,4 +52,3 @@
# Required # Required
# #
entryPoint = "web" entryPoint = "web"