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