Trying out this config #11
@@ -5,17 +5,35 @@ tcp:
|
|||||||
# Router for HTTPS (Passthrough)
|
# Router for HTTPS (Passthrough)
|
||||||
nginx-legacy-router:
|
nginx-legacy-router:
|
||||||
rule: "HostSNI(`*`)"
|
rule: "HostSNI(`*`)"
|
||||||
service: nginx-legacy-service
|
service: nginx-legacy-service-secure
|
||||||
# Passthrough must be true for SSL to reach Nginx encrypted
|
# Passthrough must be true for SSL to reach Nginx encrypted
|
||||||
tls:
|
tls:
|
||||||
passthrough: true
|
passthrough: true
|
||||||
|
priority: 1
|
||||||
entryPoints:
|
entryPoints:
|
||||||
- "https"
|
- "https"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
# Service defining the external IP
|
# Service defining the external IP
|
||||||
nginx-legacy-service:
|
nginx-legacy-service-secure:
|
||||||
loadBalancer:
|
loadBalancer:
|
||||||
servers:
|
servers:
|
||||||
# This is the actual external IP and Port of your Nginx
|
# This is the actual external IP and Port of your Nginx
|
||||||
- address: "webserver:443"
|
- address: "webserver:443"
|
||||||
|
|
||||||
|
http:
|
||||||
|
routers:
|
||||||
|
# Router for HTTP
|
||||||
|
nginx-legacy-router:
|
||||||
|
rule: "HostRegexp(`^.+$`)"
|
||||||
|
service: nginx-legacy-service
|
||||||
|
# Low priority ensures specific containers are handled first
|
||||||
|
priority: 1
|
||||||
|
entryPoints:
|
||||||
|
- "http"
|
||||||
|
|
||||||
|
services:
|
||||||
|
nginx-legacy-service:
|
||||||
|
loadBalancer:
|
||||||
|
servers:
|
||||||
|
- url: "http://webserver:80"
|
||||||
Reference in New Issue
Block a user