Refactor reverse proxy path handling and enhance documentation. Updated reverse.go to improve upstream URL construction and added a new test for nested API routes in reverse_test.go. Revised GATEWAY_RUN.md to clarify API path behavior and configuration requirements for Nginx. Adjusted comments in config.example.yaml for better understanding of HTTPS and API prefix usage.
Publish telemt-api gateway Docker image / test (push) Failing after 36s
Publish telemt-api gateway Docker image / build-and-push (push) Has been skipped

This commit is contained in:
Denozordec
2026-03-30 00:21:16 +07:00
parent 16b1d8148d
commit 5a9b402220
4 changed files with 52 additions and 28 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ servers:
path_prefix: /v1
# authorization_env: TELEMT_API_AUTH
# ivx: API за префиксом /api/ на HTTPS.
# ivx: HTTPS + nginx location /api/ → Telemt; base_url должен заканчиваться на /api/
- alias: gt1
base_url: https://gt1.ivx.su/api/
path_prefix: /v1