12 lines
312 B
TOML
12 lines
312 B
TOML
|
[http.middlewares.simpleAuth.basicAuth]
|
||
|
users = [
|
||
|
"admin:$apr1$86fC1Dr4$tDIyf.Zhg4z.NSf3uHY./."
|
||
|
]
|
||
|
|
||
|
[http.routers.api]
|
||
|
rule = "Host(`yourdomain.com`)"
|
||
|
entrypoints = ["web","websecure"]
|
||
|
middlewares = ["simpleAuth"]
|
||
|
service = "api@internal"
|
||
|
[http.routers.api.tls]
|
||
|
certResolver = "lets-encrypt"
|