Add SSLForceHost support.

This commit is contained in:
Ludovic Fernandez 2018-05-14 11:44:03 +02:00 committed by Traefiker Bot
parent dce65ab9c2
commit b7d20496f3
37 changed files with 389 additions and 40 deletions

View file

@ -140,6 +140,7 @@ func TestDockerBuildConfiguration(t *testing.T) {
label.TraefikFrontendReferrerPolicy: "foo",
label.TraefikFrontendCustomBrowserXSSValue: "foo",
label.TraefikFrontendSTSSeconds: "666",
label.TraefikFrontendSSLForceHost: "true",
label.TraefikFrontendSSLRedirect: "true",
label.TraefikFrontendSSLTemporaryRedirect: "true",
label.TraefikFrontendSTSIncludeSubdomains: "true",
@ -216,6 +217,7 @@ func TestDockerBuildConfiguration(t *testing.T) {
SSLRedirect: true,
SSLTemporaryRedirect: true,
SSLHost: "foo",
SSLForceHost: true,
SSLProxyHeaders: map[string]string{
"Access-Control-Allow-Methods": "POST,GET,OPTIONS",
"Content-Type": "application/json; charset=utf-8",