Add traefik redirect whitney.rip > www.whitney.rip

This commit is contained in:
whitney 2024-05-18 00:05:53 -07:00
parent a7b5eb4e1b
commit a34df46bb0
4 changed files with 16 additions and 13 deletions

View File

@ -1,13 +0,0 @@
# Whitney Traefik Dynamic Config
[http.middlewares.simpleAuth.basicAuth]
users = ["USER_REDACTED:$PASS$WORD_REDACTED"]
[http.routers.api]
rule = "Host(`monitor.whitney.rip`)"
entrypoints = "websecure"
middlewares = ["simpleAuth"]
service = "api@internal"
[http.routers.api.tls]
certResolver = "lets-encrypt"

View File

@ -0,0 +1,16 @@
[http.middlewares]
[http.middlewares.redirect-to-www.redirectRegex]
regex = "^https?://whitney.com(.*)"
replacement = "http://www.whitney.com$${1}"
permanent = true
[http.middlewares.simpleAuth.basicAuth]
users = ["olomana:$2y$05$k9MjyAQnhsdUiWY9laCzD.1Ckidw5IcM282RUgmUyOgHHo.YbtGmq"]
[http.routers.api]
rule = "Host(`monitor.whitney.rip`)"
entrypoints = "websecure"
middlewares = ["simpleAuth"]
service = "api@internal"
[http.routers.api.tls]
certResolver = "lets-encrypt"