- Added optional Mihomo configuration fields in `config.compose.yaml` and `config.example.yaml` for enhanced integration with the Mihomo external-controller. - Updated the `Gateway` to handle Mihomo API requests, including proxying and error handling for Mihomo-specific endpoints. - Enhanced the documentation in `GATEWAY_RUN.md` to guide users on configuring Mihomo integration. - Introduced new utility functions in the web client for interacting with Mihomo API endpoints, improving the overall user experience. - Updated the sidebar in the Svelte components to include a link to the Mihomo section, enhancing navigation.
15 lines
790 B
YAML
15 lines
790 B
YAML
# Пример для docker compose: без whitelist (только для локальной проверки).
|
|
# На Linux в docker-compose.yml задано extra_hosts host.docker.internal:host-gateway.
|
|
listen: ":8080"
|
|
allow_all: true
|
|
whitelist_cidrs: []
|
|
trusted_proxies: []
|
|
# UI отдаётся с того же порта, что и API (образ шлюза) — отдельный CORS для панели не нужен.
|
|
servers:
|
|
- alias: main_srv
|
|
base_url: http://host.docker.internal:9091
|
|
# Раскомментируйте при настройке Mihomo и общей сети с контейнером mihomo:
|
|
# mihomo_base_url: http://mihomo:9090
|
|
# или: mihomo_base_url_env: MIHOMO_CONTROLLER_URL
|
|
# mihomo_authorization_env: TELEMT_MIHOMO_AUTH
|