Scope dev Traefik routes to *.dev.eventhub.local only
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+13
-142
@@ -47,203 +47,74 @@ http:
|
|||||||
burst: 500
|
burst: 500
|
||||||
|
|
||||||
routers:
|
routers:
|
||||||
# Пользовательский REST API
|
# dev — только *.dev.eventhub.local
|
||||||
api-dev:
|
api:
|
||||||
rule: "Host(`api.dev.eventhub.local`)"
|
rule: "Host(`api.dev.eventhub.local`)"
|
||||||
entryPoints: ["web"]
|
entryPoints: ["web"]
|
||||||
middlewares: ["redirect-to-https", "strip-api-prefix", "api-ratelimit", "waf"]
|
middlewares: ["redirect-to-https", "strip-api-prefix", "api-ratelimit", "waf"]
|
||||||
service: "api"
|
service: "api"
|
||||||
api-dev-secure:
|
api-secure:
|
||||||
rule: "Host(`api.dev.eventhub.local`)"
|
rule: "Host(`api.dev.eventhub.local`)"
|
||||||
entryPoints: ["websecure"]
|
entryPoints: ["websecure"]
|
||||||
tls: true
|
tls: true
|
||||||
middlewares: ["strip-api-prefix", "api-ratelimit", "waf"]
|
middlewares: ["strip-api-prefix", "api-ratelimit", "waf"]
|
||||||
service: "api"
|
service: "api"
|
||||||
api-ift:
|
|
||||||
rule: "Host(`api.ift.eventhub.local`)"
|
|
||||||
entryPoints: ["web"]
|
|
||||||
middlewares: ["redirect-to-https", "strip-api-prefix", "api-ratelimit", "waf"]
|
|
||||||
service: "api"
|
|
||||||
api-ift-secure:
|
|
||||||
rule: "Host(`api.ift.eventhub.local`)"
|
|
||||||
entryPoints: ["websecure"]
|
|
||||||
tls: true
|
|
||||||
middlewares: ["strip-api-prefix", "api-ratelimit", "waf"]
|
|
||||||
service: "api"
|
|
||||||
api-stage:
|
|
||||||
rule: "Host(`api.stage.eventhub.local`)"
|
|
||||||
entryPoints: ["web"]
|
|
||||||
middlewares: ["redirect-to-https", "strip-api-prefix", "api-ratelimit", "waf"]
|
|
||||||
service: "api"
|
|
||||||
api-stage-secure:
|
|
||||||
rule: "Host(`api.stage.eventhub.local`)"
|
|
||||||
entryPoints: ["websecure"]
|
|
||||||
tls: true
|
|
||||||
middlewares: ["strip-api-prefix", "api-ratelimit", "waf"]
|
|
||||||
service: "api"
|
|
||||||
|
|
||||||
# Пользовательский WebSocket
|
ws:
|
||||||
ws-dev:
|
|
||||||
rule: "Host(`ws.dev.eventhub.local`)"
|
rule: "Host(`ws.dev.eventhub.local`)"
|
||||||
entryPoints: ["web"]
|
entryPoints: ["web"]
|
||||||
middlewares: ["redirect-to-https"]
|
middlewares: ["redirect-to-https"]
|
||||||
service: "ws"
|
service: "ws"
|
||||||
ws-dev-secure:
|
ws-secure:
|
||||||
rule: "Host(`ws.dev.eventhub.local`)"
|
rule: "Host(`ws.dev.eventhub.local`)"
|
||||||
entryPoints: ["websecure"]
|
entryPoints: ["websecure"]
|
||||||
tls: true
|
tls: true
|
||||||
service: "ws"
|
service: "ws"
|
||||||
ws-ift:
|
|
||||||
rule: "Host(`ws.ift.eventhub.local`)"
|
|
||||||
entryPoints: ["web"]
|
|
||||||
middlewares: ["redirect-to-https"]
|
|
||||||
service: "ws"
|
|
||||||
ws-ift-secure:
|
|
||||||
rule: "Host(`ws.ift.eventhub.local`)"
|
|
||||||
entryPoints: ["websecure"]
|
|
||||||
tls: true
|
|
||||||
service: "ws"
|
|
||||||
ws-stage:
|
|
||||||
rule: "Host(`ws.stage.eventhub.local`)"
|
|
||||||
entryPoints: ["web"]
|
|
||||||
middlewares: ["redirect-to-https"]
|
|
||||||
service: "ws"
|
|
||||||
ws-stage-secure:
|
|
||||||
rule: "Host(`ws.stage.eventhub.local`)"
|
|
||||||
entryPoints: ["websecure"]
|
|
||||||
tls: true
|
|
||||||
service: "ws"
|
|
||||||
|
|
||||||
# Админский REST API
|
admin-api:
|
||||||
admin-api-dev:
|
|
||||||
rule: "Host(`admin-api.dev.eventhub.local`)"
|
rule: "Host(`admin-api.dev.eventhub.local`)"
|
||||||
entryPoints: ["web"]
|
entryPoints: ["web"]
|
||||||
middlewares: ["redirect-to-https", "strip-api-prefix", "admin-ratelimit", "waf"]
|
middlewares: ["redirect-to-https", "strip-api-prefix", "admin-ratelimit", "waf"]
|
||||||
service: "admin-api"
|
service: "admin-api"
|
||||||
admin-api-dev-secure:
|
admin-api-secure:
|
||||||
rule: "Host(`admin-api.dev.eventhub.local`)"
|
rule: "Host(`admin-api.dev.eventhub.local`)"
|
||||||
entryPoints: ["websecure"]
|
entryPoints: ["websecure"]
|
||||||
tls: true
|
tls: true
|
||||||
middlewares: ["strip-api-prefix", "admin-ratelimit", "waf"]
|
middlewares: ["strip-api-prefix", "admin-ratelimit", "waf"]
|
||||||
service: "admin-api"
|
service: "admin-api"
|
||||||
admin-api-ift:
|
|
||||||
rule: "Host(`admin-api.ift.eventhub.local`)"
|
|
||||||
entryPoints: ["web"]
|
|
||||||
middlewares: ["redirect-to-https", "strip-api-prefix", "admin-ratelimit", "waf"]
|
|
||||||
service: "admin-api"
|
|
||||||
admin-api-ift-secure:
|
|
||||||
rule: "Host(`admin-api.ift.eventhub.local`)"
|
|
||||||
entryPoints: ["websecure"]
|
|
||||||
tls: true
|
|
||||||
middlewares: ["strip-api-prefix", "admin-ratelimit", "waf"]
|
|
||||||
service: "admin-api"
|
|
||||||
admin-api-stage:
|
|
||||||
rule: "Host(`admin-api.stage.eventhub.local`)"
|
|
||||||
entryPoints: ["web"]
|
|
||||||
middlewares: ["redirect-to-https", "strip-api-prefix", "admin-ratelimit", "waf"]
|
|
||||||
service: "admin-api"
|
|
||||||
admin-api-stage-secure:
|
|
||||||
rule: "Host(`admin-api.stage.eventhub.local`)"
|
|
||||||
entryPoints: ["websecure"]
|
|
||||||
tls: true
|
|
||||||
middlewares: ["strip-api-prefix", "admin-ratelimit", "waf"]
|
|
||||||
service: "admin-api"
|
|
||||||
|
|
||||||
# Админский WebSocket
|
admin-ws:
|
||||||
admin-ws-dev:
|
|
||||||
rule: "Host(`admin-ws.dev.eventhub.local`)"
|
rule: "Host(`admin-ws.dev.eventhub.local`)"
|
||||||
entryPoints: ["web"]
|
entryPoints: ["web"]
|
||||||
middlewares: ["redirect-to-https"]
|
middlewares: ["redirect-to-https"]
|
||||||
service: "admin-ws"
|
service: "admin-ws"
|
||||||
admin-ws-dev-secure:
|
admin-ws-secure:
|
||||||
rule: "Host(`admin-ws.dev.eventhub.local`)"
|
rule: "Host(`admin-ws.dev.eventhub.local`)"
|
||||||
entryPoints: ["websecure"]
|
entryPoints: ["websecure"]
|
||||||
tls: true
|
tls: true
|
||||||
service: "admin-ws"
|
service: "admin-ws"
|
||||||
admin-ws-ift:
|
|
||||||
rule: "Host(`admin-ws.ift.eventhub.local`)"
|
|
||||||
entryPoints: ["web"]
|
|
||||||
middlewares: ["redirect-to-https"]
|
|
||||||
service: "admin-ws"
|
|
||||||
admin-ws-ift-secure:
|
|
||||||
rule: "Host(`admin-ws.ift.eventhub.local`)"
|
|
||||||
entryPoints: ["websecure"]
|
|
||||||
tls: true
|
|
||||||
service: "admin-ws"
|
|
||||||
admin-ws-stage:
|
|
||||||
rule: "Host(`admin-ws.stage.eventhub.local`)"
|
|
||||||
entryPoints: ["web"]
|
|
||||||
middlewares: ["redirect-to-https"]
|
|
||||||
service: "admin-ws"
|
|
||||||
admin-ws-stage-secure:
|
|
||||||
rule: "Host(`admin-ws.stage.eventhub.local`)"
|
|
||||||
entryPoints: ["websecure"]
|
|
||||||
tls: true
|
|
||||||
service: "admin-ws"
|
|
||||||
|
|
||||||
# Админский UI
|
admin-ui:
|
||||||
admin-ui-dev:
|
|
||||||
rule: "Host(`admin-ui.dev.eventhub.local`)"
|
rule: "Host(`admin-ui.dev.eventhub.local`)"
|
||||||
entryPoints: ["web"]
|
entryPoints: ["web"]
|
||||||
middlewares: ["redirect-to-https"]
|
middlewares: ["redirect-to-https"]
|
||||||
service: "admin-ui-service"
|
service: "admin-ui-service"
|
||||||
admin-ui-dev-secure:
|
admin-ui-secure:
|
||||||
rule: "Host(`admin-ui.dev.eventhub.local`)"
|
rule: "Host(`admin-ui.dev.eventhub.local`)"
|
||||||
entryPoints: ["websecure"]
|
entryPoints: ["websecure"]
|
||||||
tls: true
|
tls: true
|
||||||
service: "admin-ui-service"
|
service: "admin-ui-service"
|
||||||
admin-ui-ift:
|
|
||||||
rule: "Host(`admin-ui.ift.eventhub.local`)"
|
|
||||||
entryPoints: ["web"]
|
|
||||||
middlewares: ["redirect-to-https"]
|
|
||||||
service: "admin-ui-service"
|
|
||||||
admin-ui-ift-secure:
|
|
||||||
rule: "Host(`admin-ui.ift.eventhub.local`)"
|
|
||||||
entryPoints: ["websecure"]
|
|
||||||
tls: true
|
|
||||||
service: "admin-ui-service"
|
|
||||||
admin-ui-stage:
|
|
||||||
rule: "Host(`admin-ui.stage.eventhub.local`)"
|
|
||||||
entryPoints: ["web"]
|
|
||||||
middlewares: ["redirect-to-https"]
|
|
||||||
service: "admin-ui-service"
|
|
||||||
admin-ui-stage-secure:
|
|
||||||
rule: "Host(`admin-ui.stage.eventhub.local`)"
|
|
||||||
entryPoints: ["websecure"]
|
|
||||||
tls: true
|
|
||||||
service: "admin-ui-service"
|
|
||||||
|
|
||||||
# Клиентский UI
|
client-ui:
|
||||||
client-ui-dev:
|
|
||||||
rule: "Host(`ui.dev.eventhub.local`)"
|
rule: "Host(`ui.dev.eventhub.local`)"
|
||||||
entryPoints: ["web"]
|
entryPoints: ["web"]
|
||||||
middlewares: ["redirect-to-https"]
|
middlewares: ["redirect-to-https"]
|
||||||
service: "client-ui-service"
|
service: "client-ui-service"
|
||||||
client-ui-dev-secure:
|
client-ui-secure:
|
||||||
rule: "Host(`ui.dev.eventhub.local`)"
|
rule: "Host(`ui.dev.eventhub.local`)"
|
||||||
entryPoints: ["websecure"]
|
entryPoints: ["websecure"]
|
||||||
tls: true
|
tls: true
|
||||||
service: "client-ui-service"
|
service: "client-ui-service"
|
||||||
client-ui-ift:
|
|
||||||
rule: "Host(`ui.ift.eventhub.local`)"
|
|
||||||
entryPoints: ["web"]
|
|
||||||
middlewares: ["redirect-to-https"]
|
|
||||||
service: "client-ui-service"
|
|
||||||
client-ui-ift-secure:
|
|
||||||
rule: "Host(`ui.ift.eventhub.local`)"
|
|
||||||
entryPoints: ["websecure"]
|
|
||||||
tls: true
|
|
||||||
service: "client-ui-service"
|
|
||||||
client-ui-stage:
|
|
||||||
rule: "Host(`ui.stage.eventhub.local`)"
|
|
||||||
entryPoints: ["web"]
|
|
||||||
middlewares: ["redirect-to-https"]
|
|
||||||
service: "client-ui-service"
|
|
||||||
client-ui-stage-secure:
|
|
||||||
rule: "Host(`ui.stage.eventhub.local`)"
|
|
||||||
entryPoints: ["websecure"]
|
|
||||||
tls: true
|
|
||||||
service: "client-ui-service"
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
api:
|
api:
|
||||||
|
|||||||
Reference in New Issue
Block a user