Update ADC config to handle /docs route separately
Some checks failed
Helm Chart Build / lint-only (push) Has been skipped
Build and Deploy / build-web (push) Failing after 8s
Helm Chart Build / build-helm (push) Successful in 8s
Build and Deploy / build-api (push) Successful in 25s

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:
d.viti
2025-10-07 18:15:30 +02:00
parent ed660dce5a
commit 2d695ba361

View File

@@ -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