Compare commits
1 Commits
ef466353b8
...
add-route-
| Author | SHA1 | Date | |
|---|---|---|---|
| 1d30d5afad |
33
prod/route-to-staging-dev.yaml
Normal file
33
prod/route-to-staging-dev.yaml
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
http:
|
||||||
|
routers:
|
||||||
|
# Router for HTTP (Port 80)
|
||||||
|
staging:
|
||||||
|
rule: "HostRegexp(`^.+\\.staging\\.kovagoadi\\.hu$`) || HostRegexp(`^.+\\.dev\\.kovagoadi\\.hu$`)"
|
||||||
|
entryPoints:
|
||||||
|
- "web"
|
||||||
|
service: "dev-staging"
|
||||||
|
priority: 1000
|
||||||
|
services:
|
||||||
|
dev-staging:
|
||||||
|
loadBalancer:
|
||||||
|
servers:
|
||||||
|
- url: "http://staging:8080"
|
||||||
|
|
||||||
|
tcp:
|
||||||
|
routers:
|
||||||
|
# Router for HTTPS (Passthrough)
|
||||||
|
dev-staging-secure:
|
||||||
|
rule: "HostSNIRegexp(`^.+\\.staging\\.kovagoadi\\.hu$`) || HostSNIRegexp(`^.+\\.dev\\.kovagoadi\\.hu$`)"
|
||||||
|
service: "dev-staging-secure"
|
||||||
|
# Passthrough must be true for SSL to reach Nginx encrypted
|
||||||
|
tls:
|
||||||
|
passthrough: true
|
||||||
|
priority: 1000
|
||||||
|
entryPoints:
|
||||||
|
- "https"
|
||||||
|
services:
|
||||||
|
dev-staging-secure:
|
||||||
|
loadBalancer:
|
||||||
|
servers:
|
||||||
|
# Note: Ensure Traefik trusts the cert at .85 or set insecureSkipVerify
|
||||||
|
- address: "staging:445"
|
||||||
Reference in New Issue
Block a user