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