docs: раздел о публичном доступе через reverse-proxy
This commit is contained in:
@@ -89,6 +89,17 @@ curl -sN http://127.0.0.1:6165/ams/start/custom/weather \
|
||||
`GET /ams/stream/{chat_id}`, продолжать диалог `POST /ams/ask/{chat_id}` и
|
||||
завершать `POST /ams/stop/{chat_id}`.
|
||||
|
||||
### Публичный доступ (пример развёртывания)
|
||||
|
||||
AMS отдаётся наружу через reverse-proxy Apache на `git.totmin.ru`:
|
||||
|
||||
- Swagger — <https://git.totmin.ru/weather/swagger>
|
||||
- Документация — <https://git.totmin.ru/weather/help/>
|
||||
- API — `https://git.totmin.ru/weather/ams/...`
|
||||
|
||||
Префикс `/weather` срезается прокси, а uvicorn запущен с `UVICORN_ROOT_PATH=/weather`,
|
||||
поэтому ссылки в Swagger формируются корректно.
|
||||
|
||||
### Параметры
|
||||
|
||||
| Параметр | Тип | Описание |
|
||||
|
||||
Reference in New Issue
Block a user