Files
telemt-api/config.compose.yaml
T
Denozordec ef98560e9f
Publish telemt-api gateway Docker image / test (push) Successful in 24s
Publish telemt-api gateway Docker image / build-and-push (push) Successful in 1m18s
Add CORS support and Docker configuration for web service
- 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.
2026-03-30 10:31:10 +07:00

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