mirror of
https://github.com/runyanjake/olomana.git
synced 2025-10-04 21:27:29 -07:00
Add traefik redirect whitney.rip > www.whitney.rip
This commit is contained in:
parent
a7b5eb4e1b
commit
a34df46bb0
@ -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"
|
||||
|
16
traefik/traefik-dynamic.toml.blanked
Normal file
16
traefik/traefik-dynamic.toml.blanked
Normal 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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user