> ## Documentation Index
> Fetch the complete documentation index at: https://docs.lampac.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# CubProxy

> Прокси CUB API с файловым кешем: /cubproxy.js и /cub/*.

Кеш — `cache/cub/`.

## Состояние

Загружается по умолчанию. `base.conf` включает `LampaWeb.initPlugins.cubProxy`.

## Маршруты

| Метод       | Путь             | Назначение |
| ----------- | ---------------- | ---------- |
| `GET`       | `/cubproxy.js`   | Plugin     |
| `GET, POST` | `/cub/{*suffix}` | CUB proxy  |

## Конфигурация

```json theme={null}
{
  "cub": { "enable": true, "cache_api": 180 }
}
```

<Danger>
  Не открывайте этот proxy как универсальный выход в сеть. Ограничьте цели, rate limit и accsdb.
</Danger>

Проверка: `curl -fsS http://127.0.0.1:9118/cubproxy.js`
