Trying out this config #11
@@ -5,17 +5,35 @@ tcp:
|
||||
# Router for HTTPS (Passthrough)
|
||||
nginx-legacy-router:
|
||||
rule: "HostSNI(`*`)"
|
||||
service: nginx-legacy-service
|
||||
service: nginx-legacy-service-secure
|
||||
# Passthrough must be true for SSL to reach Nginx encrypted
|
||||
tls:
|
||||
passthrough: true
|
||||
priority: 1
|
||||
entryPoints:
|
||||
- "https"
|
||||
|
||||
services:
|
||||
# Service defining the external IP
|
||||
nginx-legacy-service:
|
||||
nginx-legacy-service-secure:
|
||||
loadBalancer:
|
||||
servers:
|
||||
# This is the actual external IP and Port of your Nginx
|
||||
- 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