修改docker部署

This commit is contained in:
2026-09-01 22:46:14 +08:00
parent e64e064306
commit 1bcbb23281
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ COPY --from=builder /app/dist /usr/share/nginx/html
COPY nginx.conf /etc/nginx/templates/default.conf.template COPY nginx.conf /etc/nginx/templates/default.conf.template
# 默认后端 API 地址(运行时可通过 -e BACKEND_URL=... 覆盖) # 默认后端 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 EXPOSE 8902
+1 -1
View File
@@ -11,5 +11,5 @@ services:
container_name: mcp-auth-frontend container_name: mcp-auth-frontend
network_mode: host network_mode: host
environment: 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 restart: unless-stopped
+1 -1
View File
@@ -6,7 +6,7 @@ export default defineConfig({
server: { server: {
port: 5173, port: 5173,
proxy: { proxy: {
'/api': 'http://localhost:8000', '/api': 'https://ai-workshop.digiwincloud.com.cn/mcp-auth-api',
// 鼎捷云 IAM 登录服务代理(避免 CORS / 网络问题) // 鼎捷云 IAM 登录服务代理(避免 CORS / 网络问题)
'/iam-api': { '/iam-api': {
target: 'https://iam.digiwincloud.com.cn', target: 'https://iam.digiwincloud.com.cn',