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.
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user