catch-all traefik

This commit is contained in:
Andras Bacsai committed 2023-05-31 09:22:08 +02:00
1 parent 3d4e985aa6
commit 40bab90946
11 files changed
+164 -46

No files matched your search

+23
View 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
View 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'