tag(修复):修复跨域错误

This commit is contained in:
OrangeRoll
2026-08-11 16:37:53 +08:00
parent 0f82920df0
commit b04c0ad43e
13 changed files with 202 additions and 104 deletions
+9 -5
View File
@@ -44,6 +44,7 @@ services:
AUTH_JWT_AUDIENCE: ${AUTH_JWT_AUDIENCE}
AUTH_JWT_REALM: ${AUTH_JWT_REALM}
AUTH_JWT_SECRET: ${AUTH_JWT_SECRET}
CORS_ALLOWED_ORIGINS: ${CORS_ALLOWED_ORIGINS:-http://localhost:5173}
BOOTSTRAP_ADMIN_USERNAME: ${BOOTSTRAP_ADMIN_USERNAME}
BOOTSTRAP_ADMIN_PASSWORD: ${BOOTSTRAP_ADMIN_PASSWORD}
BOOTSTRAP_ADMIN_DISPLAY_NAME: ${BOOTSTRAP_ADMIN_DISPLAY_NAME}
@@ -55,14 +56,17 @@ services:
ports:
- "127.0.0.1:8080:8080"
web:
image: screenshare-web:${SCREENSHARE_VERSION:-latest}
build:
context: ./apps/ScreenShareWeb
gateway:
image: nginx:1.27-alpine
depends_on:
- api
- livekit
volumes:
- ./web:/usr/share/nginx/html:ro
- ./infra/nginx/gateway.conf:/etc/nginx/conf.d/default.conf:ro
ports:
- "127.0.0.1:5173:80"
# The external Nginx server connects to this port over the private network.
- "${GATEWAY_BIND_ADDRESS:-0.0.0.0}:8081:80"
volumes:
postgres-data: