Compare commits
2 Commits
38ed72b6de
...
6e9c0f0442
| Author | SHA1 | Date | |
|---|---|---|---|
| 6e9c0f0442 | |||
| ba65f0609a |
@@ -21,9 +21,9 @@ services:
|
||||
- "--certificatesResolvers.letsencrypt.acme.caServer=${CERTBOT_CA_RESOLVER}"
|
||||
- "${TRAEFIK_LEGACY_OPT:-}"
|
||||
- "--providers.file.watch=true"
|
||||
extra_hosts:
|
||||
- "staging:${STAGING_IP:-192.168.1.85}"
|
||||
- "webserver:${LEGACY_IP:-192.168.1.85}"
|
||||
# extra_hosts:
|
||||
# - "staging:${STAGING_IP:-192.168.1.85}"
|
||||
# - "webserver:${LEGACY_IP:-192.168.1.85}"
|
||||
ports:
|
||||
- "${PORT}:80"
|
||||
- "${HTTPS_PORT}:443"
|
||||
|
||||
@@ -1,33 +0,0 @@
|
||||
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