lasthourcloud/examples/traefik-dynamic-catch-all.yaml

23 lines
472 B
YAML
Raw Permalink Normal View History

2023-05-31 07:22:08 +00:00
# This is an example dynamic configuration.
http:
routers:
catchall:
entryPoints:
- http
- https
service: noop
rule: HostRegexp(`{catchall:.*}`)
priority: 1
middlewares:
- redirect-regexp
services:
noop:
loadBalancer:
servers:
- url: ''
middlewares:
redirect-regexp:
redirectRegex:
regex: '(.*)'
replacement: 'https://coolify.io'
permanent: false