fix: 配置端口代理與 TrustProxies
All checks were successful
Koori-ERP-Deploy-System / deploy-demo (push) Successful in 49s
Koori-ERP-Deploy-System / deploy-production (push) Has been skipped

This commit is contained in:
2026-01-16 08:39:25 +08:00
parent 4b2ccd36b8
commit d28671b60c
3 changed files with 26 additions and 18 deletions

View File

@@ -11,7 +11,7 @@ services:
extra_hosts:
- 'host.docker.internal:host-gateway'
ports:
- '${APP_PORT:-8080}:80'
# - '${APP_PORT:-8080}:80' # 由 proxy 處理
- '${VITE_PORT:-5173}:${VITE_PORT:-5173}'
environment:
WWWUSER: '${WWWUSER}'
@@ -75,7 +75,8 @@ services:
image: 'nginx:alpine'
container_name: star-erp-proxy
ports:
- '80:80'
- '8080:8080'
- '8081:8081'
volumes:
- './nginx/demo-proxy.conf:/etc/nginx/conf.d/default.conf:ro'
networks: