The entrypoint writes certs to /certs/ but the dynamic config referenced /etc/traefik/certs/. Since both are baked into the image, align the paths so only one volume mount is needed. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
25 lines
486 B
YAML
25 lines
486 B
YAML
http:
|
|
routers:
|
|
root-redirect:
|
|
rule: "Path(`/`)"
|
|
priority: 100
|
|
entryPoints:
|
|
- websecure
|
|
tls: {}
|
|
middlewares:
|
|
- root-to-platform
|
|
service: saas@docker
|
|
middlewares:
|
|
root-to-platform:
|
|
redirectRegex:
|
|
regex: "^(https?://[^/]+)/?$"
|
|
replacement: "${1}/platform/"
|
|
permanent: false
|
|
|
|
tls:
|
|
stores:
|
|
default:
|
|
defaultCertificate:
|
|
certFile: /certs/cert.pem
|
|
keyFile: /certs/key.pem
|