Hello,
I try to specify hsts on my toml configuration file, but is not working, there is my toml file:
[http.routers]
[http.routers.test]
rule = "Host(`my-url-test`)"
service = "test-service"
entryPoints = ["web"]
middlewares = ["https_redirect"]
# https router
[http.routers.testwebsecure]
rule = "Host(`my-url-test`)"
service = "test-service"
middlewares = ["security"]
[http.routers.testwebsecure.tls]
certResolver = "letsencrypt"
[http.services]
[http.services.test-service.loadBalancer]
[[http.services.test-service.loadBalancer.servers]]
# Redirect all trafic to the url
url = "http://test.lxd:80/"
[http.middlewares]
[http.middlewares.https_redirect.redirectScheme]
scheme = "https"
permanent = true
[http.middlewares.security.headers]
forceSTSHeader = true
stsIncludeSubdomains = true
stsPreload = true
stsSeconds=15552000
[http.middlewares.security.headers.customRequestHeaders]
X-Script-Name = "test"
Do you see an error ?
Thanks