20 lines
475 B
TOML
20 lines
475 B
TOML
[http.middlewares.apiAuth.basicAuth]
|
|
users = [
|
|
"test:$apr1$H6uskkkW$IgXLP6ewTrSuBkTrqE8wj/",
|
|
]
|
|
|
|
[http.routers.my-api-redir]
|
|
rule = "Host(`{{ inventory_hostname }}`)"
|
|
entryPoints = ["web"]
|
|
middlewares = ["httpsRedirect"]
|
|
service = "api@internal"
|
|
|
|
[http.routers.my-api]
|
|
rule = "Host(`{{ inventory_hostname }}`)"
|
|
entryPoints = ["websecure"]
|
|
middlewares = ["apiAuth"]
|
|
service = "api@internal"
|
|
|
|
[http.routers.my-api.tls]
|
|
certResolver = "my-resolver"
|