forked from Ivasoft/traefik
Define TLS options on the Router configuration
Co-authored-by: juliens <julien@containo.us>
This commit is contained in:
committed by
Traefiker Bot
parent
d306c8fd50
commit
85ce16b34f
@@ -2164,7 +2164,7 @@ func Test_buildConfiguration(t *testing.T) {
|
||||
Name: "Test",
|
||||
Labels: map[string]string{
|
||||
"traefik.tcp.routers.foo.rule": "HostSNI(`foo.bar`)",
|
||||
"traefik.tcp.routers.foo.tls": "true",
|
||||
"traefik.tcp.routers.foo.tls.options": "foo",
|
||||
"traefik.tcp.services.foo.loadbalancer.server.port": "8080",
|
||||
},
|
||||
NetworkSettings: networkSettings{
|
||||
@@ -2186,7 +2186,9 @@ func Test_buildConfiguration(t *testing.T) {
|
||||
"foo": {
|
||||
Service: "foo",
|
||||
Rule: "HostSNI(`foo.bar`)",
|
||||
TLS: &config.RouterTCPTLSConfig{},
|
||||
TLS: &config.RouterTCPTLSConfig{
|
||||
Options: "foo",
|
||||
},
|
||||
},
|
||||
},
|
||||
Services: map[string]*config.TCPService{
|
||||
|
||||
@@ -580,7 +580,6 @@ func Test_buildConfiguration(t *testing.T) {
|
||||
Name: "Test",
|
||||
Labels: map[string]string{
|
||||
"traefik.tcp.routers.foo.rule": "HostSNI(`foo.bar`)",
|
||||
"traefik.tcp.routers.foo.tls": "true",
|
||||
"traefik.tcp.services.foo.loadbalancer.server.port": "8080",
|
||||
},
|
||||
Port: "80/tcp",
|
||||
@@ -595,7 +594,6 @@ func Test_buildConfiguration(t *testing.T) {
|
||||
"foo": {
|
||||
Service: "foo",
|
||||
Rule: "HostSNI(`foo.bar`)",
|
||||
TLS: &config.RouterTCPTLSConfig{},
|
||||
},
|
||||
},
|
||||
Services: map[string]*config.TCPService{
|
||||
|
||||
Reference in New Issue
Block a user