Добавлена структура для torapi-proxy на удаленном хосте

This commit is contained in:
vrubel 2026-01-02 17:41:43 +03:00
parent d1ca22a9e7
commit 04c9f48b68
2 changed files with 39 additions and 0 deletions

25
torapi-proxy/README.md Normal file
View file

@ -0,0 +1,25 @@
# TorAPI Proxy Service
Прокси-сервис для TorAPI (Torrent Search API), который работает на хосте с VPN.
## Запуск
```bash
docker-compose up -d
```
Сервис будет доступен на порту `8443`.
## Использование
Основной сервис должен обращаться к этому прокси по адресу:
- Если на другом хосте: `http://<IP_ХОСТА>:8443`
- Если на том же хосте: `http://localhost:8443`
## API Endpoints
TorAPI предоставляет следующие эндпоинты:
- `GET /api/provider/list` - список доступных провайдеров
- `GET /api/search/title/{provider}?query=<запрос>` - поиск по названию
- `GET /api/search/id/{provider}?query=<id>` - поиск по ID

View file

@ -0,0 +1,14 @@
services:
torapi-search:
image: lifailon/torapi:latest
container_name: torapi-search-proxy
environment:
- USERNAME=
- PASSWORD=
ports:
- "0.0.0.0:8443:8443"
restart: unless-stopped
dns:
- 8.8.8.8
- 8.8.4.4