catch-all traefik
This commit is contained in:
23
examples/traefik-dynamic-catch-all.yaml
Normal file
23
examples/traefik-dynamic-catch-all.yaml
Normal file
@@ -0,0 +1,23 @@
|
||||
# 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
|
||||
14
examples/traefik-dynamic-coolify.yaml
Normal file
14
examples/traefik-dynamic-coolify.yaml
Normal file
@@ -0,0 +1,14 @@
|
||||
# This is an example dynamic configuration.
|
||||
http:
|
||||
routers:
|
||||
coolify-http:
|
||||
entryPoints:
|
||||
- http
|
||||
service: coolify
|
||||
rule: Host(`coolify.io`)
|
||||
services:
|
||||
coolify:
|
||||
loadBalancer:
|
||||
servers:
|
||||
-
|
||||
url: 'http://coolify:80'
|
||||
Reference in New Issue
Block a user