catch-all traefik

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

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

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'