- Revised comments in `config.example.yaml` to enhance understanding of Mihomo integration, including environment variable usage and Docker Compose setup. - Updated `docker-compose.yml` comments to clarify the relationship between the gateway and Mihomo service. - Enhanced `GATEWAY_RUN.md` to provide clearer instructions on configuring Mihomo parameters and their usage in the gateway.
12 lines
633 B
YAML
12 lines
633 B
YAML
# Пример для docker compose: без whitelist (только для локальной проверки).
|
|
# На Linux в docker-compose.yml задано extra_hosts host.docker.internal:host-gateway.
|
|
# Без Mihomo: как ниже. С Mihomo в той же сети — см. config.example.yaml и docs/GATEWAY_RUN.md.
|
|
listen: ":8080"
|
|
allow_all: true
|
|
whitelist_cidrs: []
|
|
trusted_proxies: []
|
|
# UI отдаётся с тем же портом, что и API (образ шлюза) — отдельный CORS для панели не нужен.
|
|
servers:
|
|
- alias: main_srv
|
|
base_url: http://host.docker.internal:9091
|