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.
This commit is contained in:
@@ -1,4 +1,13 @@
|
||||
services:
|
||||
web:
|
||||
build:
|
||||
context: ./web
|
||||
dockerfile: Dockerfile
|
||||
args:
|
||||
# URL шлюза в браузере (встраивается при сборке)
|
||||
PUBLIC_TELEMT_GATEWAY_URL: http://127.0.0.1:8080
|
||||
ports:
|
||||
- "4173:4173"
|
||||
gateway:
|
||||
image: git.shts.su/denozord/telemt-api:latest
|
||||
# Локальная сборка вместо pull: укажите build: . и image: telemt-api-gateway:local
|
||||
|
||||
Reference in New Issue
Block a user