修改docker部署
This commit is contained in:
@@ -25,7 +25,7 @@ COPY --from=builder /app/dist /usr/share/nginx/html
|
||||
COPY nginx.conf /etc/nginx/templates/default.conf.template
|
||||
|
||||
# 默认后端 API 地址(运行时可通过 -e BACKEND_URL=... 覆盖)
|
||||
ENV BACKEND_URL=http://10.100.154.100:8003
|
||||
ENV BACKEND_URL=https://ai-workshop.digiwincloud.com.cn/mcp-auth-api
|
||||
|
||||
EXPOSE 8902
|
||||
|
||||
|
||||
@@ -11,5 +11,5 @@ services:
|
||||
container_name: mcp-auth-frontend
|
||||
network_mode: host
|
||||
environment:
|
||||
- BACKEND_URL=${BACKEND_URL:-http://10.100.154.100:8003}
|
||||
- BACKEND_URL=${BACKEND_URL:-https://ai-workshop.digiwincloud.com.cn/mcp-auth-api}
|
||||
restart: unless-stopped
|
||||
|
||||
@@ -6,7 +6,7 @@ export default defineConfig({
|
||||
server: {
|
||||
port: 5173,
|
||||
proxy: {
|
||||
'/api': 'http://localhost:8000',
|
||||
'/api': 'https://ai-workshop.digiwincloud.com.cn/mcp-auth-api',
|
||||
// 鼎捷云 IAM 登录服务代理(避免 CORS / 网络问题)
|
||||
'/iam-api': {
|
||||
target: 'https://iam.digiwincloud.com.cn',
|
||||
|
||||
Reference in New Issue
Block a user