Trying out this config #11

Merged
kovagoadi merged 26 commits from add-acme into main 2025-11-27 23:58:44 +01:00
Showing only changes of commit 0a87dad19e - Show all commits

View File

@@ -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"