From 2d695ba36149c9226efa910b7ba8354fbc0bc777 Mon Sep 17 00:00:00 2001 From: "d.viti" Date: Tue, 7 Oct 2025 18:15:30 +0200 Subject: [PATCH] Update ADC config to handle /docs route separately Add a new route for /docs and /docs/* with higher priority. Exclude /docs from the default route's URI regex to prevent overlap. --- helm/api7ee-demo-k8s/templates/configmap-adc.yaml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/helm/api7ee-demo-k8s/templates/configmap-adc.yaml b/helm/api7ee-demo-k8s/templates/configmap-adc.yaml index 3a20988..2126a8b 100644 --- a/helm/api7ee-demo-k8s/templates/configmap-adc.yaml +++ b/helm/api7ee-demo-k8s/templates/configmap-adc.yaml @@ -27,7 +27,7 @@ data: vars: - - uri - "~~" - - "^(?!/api)" + - "^(?!/api|/docs)" priority: 1 plugins: {{- if .Values.api7.tls.enabled }} @@ -47,6 +47,17 @@ data: port: 80 weight: 100 routes: + - name: nginx-api-docs-route + uris: + - /docs + - /docs/* + priority: 30 + plugins: + {{- if .Values.api7.tls.enabled }} + redirect: + http_to_https: true + {{- end }} + - name: nginx-api-llm-route uris: - /api/llm