Testing thsi out
All checks were successful
Remote Deployment Pipeline / Prepare Context (pull_request) Successful in 2s
Remote Deployment Pipeline / Deploy (Staging) (pull_request) Has been skipped
Remote Deployment Pipeline / Deploy (Dev/Preview) (pull_request) Successful in 46s
Remote Deployment Pipeline / Deploy (Production) (pull_request) Has been skipped
Remote Deployment Pipeline / Cleanup Preview (pull_request) Has been skipped
All checks were successful
Remote Deployment Pipeline / Prepare Context (pull_request) Successful in 2s
Remote Deployment Pipeline / Deploy (Staging) (pull_request) Has been skipped
Remote Deployment Pipeline / Deploy (Dev/Preview) (pull_request) Successful in 46s
Remote Deployment Pipeline / Deploy (Production) (pull_request) Has been skipped
Remote Deployment Pipeline / Cleanup Preview (pull_request) Has been skipped
This commit is contained in:
@@ -19,11 +19,12 @@
|
|||||||
|
|
||||||
tcp:
|
tcp:
|
||||||
routers:
|
routers:
|
||||||
# Router for HTTPS (Passthrough)
|
# Router for LEGACY HTTPS (Passthrough)
|
||||||
nginx-legacy-router-secure:
|
nginx-legacy-router-secure:
|
||||||
rule: "HostSNI(`*`)"
|
# DO NOT use "*". List the domains that Nginx manages itself.
|
||||||
|
# If you use "*", Traefik's own HTTPS domains will not work.
|
||||||
|
rule: "HostSNI(`excali.kovagoadi.hu`, `another-legacy.hu`)"
|
||||||
service: nginx-legacy-service-secure
|
service: nginx-legacy-service-secure
|
||||||
# Passthrough must be true for SSL to reach Nginx encrypted
|
|
||||||
tls:
|
tls:
|
||||||
passthrough: true
|
passthrough: true
|
||||||
priority: 1
|
priority: 1
|
||||||
@@ -31,34 +32,28 @@ tcp:
|
|||||||
- "https"
|
- "https"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
# Service defining the external IP
|
|
||||||
nginx-legacy-service-secure:
|
nginx-legacy-service-secure:
|
||||||
loadBalancer:
|
loadBalancer:
|
||||||
servers:
|
servers:
|
||||||
# This is the actual external IP and Port of your Nginx
|
|
||||||
- address: "webserver:443"
|
- address: "webserver:443"
|
||||||
|
|
||||||
http:
|
http:
|
||||||
routers:
|
routers:
|
||||||
# 1. ROUTE FOR TRAEFIK-MANAGED DOMAINS
|
# 1. TRAEFIK-MANAGED ACME HANDLER
|
||||||
# For domains Traefik should handle, send challenges to the internal ACME service.
|
|
||||||
traefik-acme-handler:
|
traefik-acme-handler:
|
||||||
rule: "Host(`test-whoami.dev.kovagoadi.hu`) && PathPrefix(`/.well-known/acme-challenge/`)"
|
rule: "Host(`test-whoami.dev.kovagoadi.hu`) && PathPrefix(`/.well-known/acme-challenge/`)"
|
||||||
entryPoints:
|
entryPoints:
|
||||||
- "web"
|
- "web"
|
||||||
service: "acme-http@internal" # This is the internal service name
|
service: "acme-http@internal"
|
||||||
priority: 1000 # High priority to ensure it wins
|
priority: 1000
|
||||||
|
|
||||||
# 2. THE CATCH-ALL ROUTER (LEGACY)
|
# 2. THE HTTP CATCH-ALL (Sends other ACME and HTTP to Nginx)
|
||||||
# This remains your broad catch-all. Since it has lower priority,
|
|
||||||
# the one above handles the Traefik domains, and everything else hits this.
|
|
||||||
nginx-legacy-router:
|
nginx-legacy-router:
|
||||||
rule: "HostRegexp(`^.+$`)"
|
rule: "HostRegexp(`^.+$`)"
|
||||||
service: nginx-legacy-service
|
service: nginx-legacy-service
|
||||||
entryPoints:
|
entryPoints:
|
||||||
- "web"
|
- "web"
|
||||||
priority: 1 # Will catch ACME for any domain NOT listed in the handler above
|
priority: 1
|
||||||
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
nginx-legacy-service:
|
nginx-legacy-service:
|
||||||
|
|||||||
Reference in New Issue
Block a user