mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-14 18:18:29 +00:00
catch-all traefik
This commit is contained in:
1 parent
3d4e985aa6
commit
40bab90946
11 files changed
+164
-46
No files matched your search
@@ -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
|
||||
@@ -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