diff --git a/configuration/entrypoints_test.go b/configuration/entrypoints_test.go index a528c04b0..59b357220 100644 --- a/configuration/entrypoints_test.go +++ b/configuration/entrypoints_test.go @@ -170,7 +170,7 @@ func TestEntryPoints_Set(t *testing.T) { name: "all parameters camelcase", expression: "Name:foo " + "Address::8000 " + - "TLS:goo,gii " + + "TLS:goo,gii;foo,fii " + "TLS " + "CA:car " + "CA.Optional:true " + @@ -203,6 +203,10 @@ func TestEntryPoints_Set(t *testing.T) { CertFile: tls.FileOrContent("goo"), KeyFile: tls.FileOrContent("gii"), }, + { + CertFile: tls.FileOrContent("foo"), + KeyFile: tls.FileOrContent("fii"), + }, }, ClientCA: tls.ClientCA{ Files: []string{"car"}, @@ -272,7 +276,7 @@ func TestEntryPoints_Set(t *testing.T) { name: "all parameters lowercase", expression: "Name:foo " + "address::8000 " + - "tls:goo,gii " + + "tls:goo,gii;foo,fii " + "tls " + "ca:car " + "ca.Optional:true " + @@ -303,6 +307,10 @@ func TestEntryPoints_Set(t *testing.T) { CertFile: tls.FileOrContent("goo"), KeyFile: tls.FileOrContent("gii"), }, + { + CertFile: tls.FileOrContent("foo"), + KeyFile: tls.FileOrContent("fii"), + }, }, ClientCA: tls.ClientCA{ Files: []string{"car"}, diff --git a/docs/configuration/entrypoints.md b/docs/configuration/entrypoints.md index a41009ca0..36a4d8cce 100644 --- a/docs/configuration/entrypoints.md +++ b/docs/configuration/entrypoints.md @@ -106,7 +106,7 @@ traefik: ```ini Name:foo Address::80 -TLS:goo,gii +TLS:/my/path/foo.cert,/my/path/foo.key;/my/path/goo.cert,/my/path/goo.key;/my/path/hoo.cert,/my/path/hoo.key TLS CA:car CA.Optional:true