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.
This commit is contained in:
@@ -27,7 +27,7 @@ data:
|
|||||||
vars:
|
vars:
|
||||||
- - uri
|
- - uri
|
||||||
- "~~"
|
- "~~"
|
||||||
- "^(?!/api)"
|
- "^(?!/api|/docs)"
|
||||||
priority: 1
|
priority: 1
|
||||||
plugins:
|
plugins:
|
||||||
{{- if .Values.api7.tls.enabled }}
|
{{- if .Values.api7.tls.enabled }}
|
||||||
@@ -47,6 +47,17 @@ data:
|
|||||||
port: 80
|
port: 80
|
||||||
weight: 100
|
weight: 100
|
||||||
routes:
|
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
|
- name: nginx-api-llm-route
|
||||||
uris:
|
uris:
|
||||||
- /api/llm
|
- /api/llm
|
||||||
|
|||||||
Reference in New Issue
Block a user