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:
|
||||
- - 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
|
||||
|
||||
Reference in New Issue
Block a user