http: routers: # Router for HTTP (Port 80) staging: rule: "Host(`staging.kovagoadi.hu`) || Host(`test-whoami.staging.kovagoadi.hu`)" entryPoints: - "web" service: "dev-staging" priority: 1000000 # # 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 tcp: routers: # Router for HTTPS (Passthrough) staging-secure: rule: "HostSNI(`staging.kovagoadi.hu`) || HostSNI(`dev.kovagoadi.hu`)" service: "dev-staging-secure" # Passthrough must be true for SSL to reach Nginx encrypted tls: passthrough: true priority: 100 entryPoints: - "https" 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 - address: "192.168.1.85:445"