For sample i have well working one confgiration below with 1.7 but its very difficult to transfer V2 also converter tool dont work with TLS and this configuration is based on one two site with ssl works with multiple app server one of them is 80 (apache http) others 8080 nodejs so its common for setup like that.
So please put same totaly working example of TOML ..
logLevel = "DEBUG"
#logLevel = "ERROR"
#logLevel = "INFO"
#[traefikLog]
# filePath = "/tmp/logs/traefik.log"
# format = "json"
[accessLog]
filePath = "/tmp/logs/traefikaccess.log"
#format = "json"
bufferingSize = 100
[accessLog.filters]
# statusCodes keep only access logs with status codes in the specified range
#
# Optional
# Default: []
#
#ClientHost="478.476.464.426"
MaxIdleConnsPerHost = 20000
#[traefikLog]
# filePath = "/tmp/logs/traefik.log"
[respondingTimeouts]
readTimeout = "180s"
writeTimeout = "180s"
#[web]
#address = ":8080"
[healthcheck]
defaultEntryPoints = ["site1_lb_http", "site1_lb_https"]
[entryPoints]
[entryPoints.site1_lb_http]
address = "www.site1.com:80"
[entryPoints.site1_lb_http.redirect]
entryPoint = "site1_lb_https"
[entryPoints.site1_lb_https]
address = "www.site1.com:443"
compress = true
# [entryPoints.site1_lb_https.redirect]
# regex = "^https://site1.com/(.*)"
# replacement = "https://www.site1.com/$1"
# permanent = true
[entryPoints.site1_lb_https.tls]
minVersion = "VersionTLS12"
cipherSuites = [
"TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256"
,"TLS_RSA_WITH_AES_256_GCM_SHA384"
#,"TLS_RSA_WITH_AES_128_CBC_SHA"
#,"TLS_RSA_WITH_AES_256_CBC_SHA"
#,"TLS_RSA_WITH_AES_128_GCM_SHA256"
#"TLS_RSA_WITH_RC4_128_SHA",
#"TLS_RSA_WITH_AES_128_CBC_SHA",
#"TLS_RSA_WITH_AES_256_CBC_SHA",
#"TLS_RSA_WITH_AES_128_CBC_SHA256",
#"TLS_RSA_WITH_AES_128_GCM_SHA256",
#"TLS_RSA_WITH_AES_256_GCM_SHA384"
]
[[entryPoints.site1_lb_https.tls.certificates]]
certFile = "site1_ssl-bundle.crt"
keyFile = "site1_com_nopass.key"
[[entryPoints.site1_lb_https.tls.certificates]]
certFile = "site2_ssl-bundle.crt"
keyFile = "site2_com_nopass.key"
[file]
[backends]
[backends.bac_site1_web]
[backends.bac_site1_web.buffering]
maxRequestBodyBytes = 10485760
memRequestBodyBytes = 2097152
maxResponseBodyBytes = 10485760
memResponseBodyBytes = 2097152
[backends.bac_site1_web.loadbalancer.stickiness]
[backends.bac_site1_web.healthcheck]
path = "/favicon.ico"
interval = "1000s"
[backends.bac_site1_web.circuitbreaker]
expression = "NetworkErrorRatio() > 0.5"
[backends.bac_site1_web.servers.site1_web_server1]
url = "http://999.888.999121"
weight = 10
# [backends.bac_site1_web.servers.site1_web_server2]
# url = "http://999.888.999122"
# weight = 10
[backends.bac_site1_nodejs]
[backends.bac_site1_nodejs.buffering]
maxRequestBodyBytes = 10485760
memRequestBodyBytes = 2097152
maxResponseBodyBytes = 10485760
memResponseBodyBytes = 2097152
# [backends.bac_site1_nodejs.loadbalancer.stickiness]
# [backends.bac_site1_nodejs.healthcheck]
# path = "/favicon.ico"
# interval = "1000s"
# [backends.bac_site1_nodejs.circuitbreaker]
# expression = "NetworkErrorRatio() > 0.5"
[backends.bac_site1_nodejs.servers.site1_nodejs_server1]
url = "http://999.888.999122:8080"
weight = 10
[backends.bac_site1_nodejs_sw]
[backends.bac_site1_nodejs_sw.buffering]
maxRequestBodyBytes = 10485760
memRequestBodyBytes = 2097152
maxResponseBodyBytes = 10485760
memResponseBodyBytes = 2097152
# [backends.bac_site1_nodejs_sw.loadbalancer.stickiness]
# [backends.bac_site1_nodejs_sw.healthcheck]
# path = "/favicon.ico"
# interval = "1000s"
# [backends.bac_site1_nodejs_sw.circuitbreaker]
# expression = "NetworkErrorRatio() > 0.5"
[backends.bac_site1_nodejs_sw.servers.site1_nodejs_sw_server1]
url = "http://999.888.999122:8090"
weight = 10
[backends.bac_site2_web]
[backends.bac_site2_web.buffering]
maxRequestBodyBytes = 10485760
memRequestBodyBytes = 2097152
maxResponseBodyBytes = 10485760
memResponseBodyBytes = 2097152
[backends.bac_site2_web.loadbalancer.stickiness]
[backends.bac_site2_web.healthcheck]
path = "/favicon.ico"
interval = "1000s"
[backends.bac_site2_web.circuitbreaker]
expression = "NetworkErrorRatio() > 0.5"
[backends.bac_site2_web.servers.site2_web_server1]
url = "http://999.888.999121"
weight = 10
# [backends.bac_site2_web.servers.site2_web_server2]
# url = "http://999.888.999122"
# weight = 10
[backends.bac_site2_nodejs]
[backends.bac_site2_nodejs.buffering]
maxRequestBodyBytes = 10485760
memRequestBodyBytes = 2097152
maxResponseBodyBytes = 10485760
memResponseBodyBytes = 2097152
# [backends.bac_site2_nodejs.loadbalancer.stickiness]
# [backends.bac_site2_nodejs.healthcheck]
# path = "/favicon.ico"
# interval = "1000s"
# [backends.bac_site2_nodejs.circuitbreaker]
# expression = "NetworkErrorRatio() > 0.5"
[backends.bac_site2_nodejs.servers.site2_nodejs_server1]
url = "http://999.888.999122:8084"
weight = 10
[backends.bac_site2_nodejs_sw]
[backends.bac_site2_nodejs_sw.buffering]
maxRequestBodyBytes = 10485760
memRequestBodyBytes = 2097152
maxResponseBodyBytes = 10485760
memResponseBodyBytes = 2097152
# [backends.bac_site2_nodejs_sw.loadbalancer.stickiness]
# [backends.bac_site2_nodejs_sw.healthcheck]
# path = "/favicon.ico"
# interval = "1000s"
# [backends.bac_site2_nodejs_sw.circuitbreaker]
# expression = "NetworkErrorRatio() > 0.5"
[backends.bac_site2_nodejs_sw.servers.site2_nodejs_sw_server1]
url = "http://999.888.999122:8094"
weight = 10
[frontends]
[frontends.frn_site1_web_nodejs]
entrypoints = ["site1_lb_http","site1_lb_https"]
backend = "bac_site1_nodejs"
passHostHeader = true
[frontends.frn_site1_web_nodejs.routes.nodejs]
rule = "HostRegexp:www.site1.com;Path:/socket.io/"
[frontends.frn_site1_web_nodejs_sw]
entrypoints = ["site1_lb_http","site1_lb_https"]
backend = "bac_site1_nodejs_sw"
passHostHeader = true
[frontends.frn_site1_web_nodejs_sw.routes.nodejs_sw]
rule = "HostRegexp:www.site1.com;PathPrefix:/sw/"
[frontends.frn_site1_web_app]
entrypoints = ["site1_lb_http","site1_lb_https"]
backend = "bac_site1_web"
passHostHeader = true
[frontends.frn_site1_web_app.routes.all]
rule = "HostRegexp:www.site1.com"
[frontends.frn_site2_web_nodejs]
entrypoints = ["site1_lb_http","site1_lb_https"]
backend = "bac_site2_nodejs"
passHostHeader = true
[frontends.frn_site2_web_nodejs.routes.site2_web_nodejs]
rule = "HostRegexp:www.site2.com;Path:/socket.io/"
[frontends.frn_site2_web_nodejs_sw]
entrypoints = ["site1_lb_http","site1_lb_https"]
backend = "bac_site2_nodejs_sw"
passHostHeader = true
[frontends.frn_site2_web_nodejs_sw.routes.site2_web_nodejs_sw]
rule = "HostRegexp:www.site2.com;PathPrefix:/sw/"
[frontends.frn_site2_web_app]
entrypoints = ["site1_lb_http","site1_lb_https"]
backend = "bac_site2_web"
passHostHeader = true
[frontends.frn_site2_web_app.routes.site2_web_all]
rule = "HostRegexp:www.site2.com"