From 7a73a39d332a9b1d42548336615ab8d8ef1f2b8f Mon Sep 17 00:00:00 2001 From: Martin McKeaveney Date: Thu, 20 May 2021 21:06:08 +0100 Subject: [PATCH] fixes for production envoy config --- hosting/envoy.yaml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/hosting/envoy.yaml b/hosting/envoy.yaml index 95db418352..463b32ab60 100644 --- a/hosting/envoy.yaml +++ b/hosting/envoy.yaml @@ -21,15 +21,27 @@ static_resources: cluster: app-service prefix_rewrite: "/" - - match: { path: "/" } + - match: { prefix: "/builder/" } + route: + cluster: app-service + + - match: { prefix: "/builder" } + route: + cluster: app-service + + - match: { prefix: "/app_" } route: cluster: app-service # special case for worker admin API - - match: { path: "/api/admin" } + - match: { prefix: "/api/admin/" } route: cluster: worker-service - + + - match: { path: "/" } + route: + cluster: app-service + # special case for when API requests are made, can just forward, not to minio - match: { prefix: "/api/" } route: