- Added CORS allowed origins in config.compose.yaml to enable cross-origin requests from the web service. - Updated docker-compose.yml to include a new web service with build context and port mapping for local development. - Enhanced gateway.go to support additional HTTP methods in CORS responses. - Updated README.md to document the new web service and its configuration requirements.
14 lines
530 B
YAML
14 lines
530 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 в Docker (сервис web): браузер на другом origin — нужен CORS
|
|
cors_allowed_origins:
|
|
- "http://127.0.0.1:4173"
|
|
- "http://localhost:4173"
|
|
servers:
|
|
- alias: main_srv
|
|
base_url: http://host.docker.internal:9091
|