修改
This commit is contained in:
@@ -78,6 +78,7 @@ server {
|
||||
|
||||
# Platform 管理平台
|
||||
location /platform/ {
|
||||
# 优先尝试文件,如果不存在则返回 index.html(SPA history 模式)
|
||||
proxy_pass http://platform/;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Host $host;
|
||||
@@ -91,7 +92,9 @@ server {
|
||||
}
|
||||
|
||||
location @platform_fallback {
|
||||
proxy_pass http://platform/index.html;
|
||||
# 重写为根路径的 index.html,保留原始 URI 让前端路由处理
|
||||
rewrite ^/platform/(.*)$ /platform/index.html break;
|
||||
proxy_pass http://platform;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
@@ -114,7 +117,9 @@ server {
|
||||
}
|
||||
|
||||
location @workcase_fallback {
|
||||
proxy_pass http://workcase-web/index.html;
|
||||
# 重写为根路径的 index.html,保留原始 URI 让前端路由处理
|
||||
rewrite ^/workcase/(.*)$ /workcase/index.html break;
|
||||
proxy_pass http://workcase-web;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
|
||||
@@ -8,7 +8,7 @@ FROM node:20-alpine
|
||||
|
||||
ENV TZ=Asia/Shanghai
|
||||
|
||||
RUN apk add --no-cache tzdata curl bash sed \
|
||||
RUN apk add --no-cache tzdata curl bash sed gettext \
|
||||
&& ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
|
||||
&& echo "Asia/Shanghai" > /etc/timezone
|
||||
|
||||
@@ -39,6 +39,21 @@ ENV SHARED_PORT=8000 \
|
||||
BIDDING_PORT=8003
|
||||
# WORKCASE_WECHAT_PORT=8004
|
||||
|
||||
# ============================================
|
||||
# 应用配置环境变量(可通过 docker-compose 覆盖)
|
||||
# ============================================
|
||||
ENV APP_ENV=production \
|
||||
API_BASE_URL=/api \
|
||||
PUBLIC_PATH=/ \
|
||||
SSO_PLATFORM_URL=/ \
|
||||
SSO_WORKCASE_URL=/workcase \
|
||||
SSO_BIDDING_URL=/bidding \
|
||||
AES_SECRET_KEY=MTIzNDU2Nzg5MDEyMzQ1Njc4OTAxMjM0NTY3ODkwMTI= \
|
||||
JITSI_SERVER_URL=https://meet.example.com \
|
||||
AI_DEFAULT_AGENT_ID=17664699513920001 \
|
||||
FILE_MAX_SIZE=100 \
|
||||
ENABLE_DEBUG=false
|
||||
|
||||
# 配置和日志目录 (可外挂)
|
||||
VOLUME ["/app/config", "/app/logs"]
|
||||
|
||||
|
||||
@@ -25,7 +25,8 @@ window.APP_RUNTIME_CONFIG = {
|
||||
maxSize: {
|
||||
image: 5,
|
||||
video: 100,
|
||||
document: 10
|
||||
document: 10,
|
||||
default: 100 * 1024 * 1024
|
||||
},
|
||||
acceptTypes: {
|
||||
image: 'image/*',
|
||||
@@ -58,6 +59,10 @@ window.APP_RUNTIME_CONFIG = {
|
||||
jitsi: {
|
||||
serverUrl: 'https://demo-jitsi.tensorgrove.com'
|
||||
},
|
||||
// AI 配置
|
||||
ai: {
|
||||
defaultAgentId: '17678420499370001' // 默认 AI Agent ID
|
||||
},
|
||||
|
||||
// 功能开关
|
||||
features: {
|
||||
|
||||
Reference in New Issue
Block a user