From f5f727b4f0a89d873178b849a14f9c02ccbbd7ee Mon Sep 17 00:00:00 2001 From: kovagoadi Date: Mon, 22 Dec 2025 15:07:31 +0100 Subject: [PATCH] new config --- prod/route-to-staging-dev.yaml | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/prod/route-to-staging-dev.yaml b/prod/route-to-staging-dev.yaml index 339a3ca..e0f8070 100644 --- a/prod/route-to-staging-dev.yaml +++ b/prod/route-to-staging-dev.yaml @@ -1,26 +1,30 @@ http: routers: + # Router for HTTP (Port 80) staging: rule: "Host(`staging.kovagoadi.hu`) || Host(`dev.kovagoadi.hu`)" entryPoints: - "web" - service: "dev-staging" + service: "dev-staging" priority: 100 -https: - routers: + + # Router for HTTPS (Port 443) staging-secure: rule: "Host(`staging.kovagoadi.hu`) || Host(`dev.kovagoadi.hu`)" entryPoints: - "https" service: "dev-staging-secure" priority: 100 + tls: {} # <--- This enables TLS for this router -services: - dev-staging: - loadBalancer: - servers: - - url: "http://192.168.1.85:8080" - dev-staging-secure: - loadBalancer: - servers: - - url: "https://192.168.1.85:445" + services: + dev-staging: + loadBalancer: + servers: + - url: "http://192.168.1.85:8080" + + dev-staging-secure: + loadBalancer: + servers: + # Note: Ensure Traefik trusts the cert at .85 or set insecureSkipVerify + - url: "https://192.168.1.85:445" \ No newline at end of file