-
Notifications
You must be signed in to change notification settings - Fork 77
Expand file tree
/
Copy pathenv.local
More file actions
214 lines (171 loc) · 6.04 KB
/
Copy pathenv.local
File metadata and controls
214 lines (171 loc) · 6.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
# LOG_LEVEL=verbose # 'error', 'warn', 'log', 'debug', 'verbose'
# DEBUG=@langchain/mcp-adapters:*,ocap:*
LOG_DIR=./dist/apps/api/logs
# LOG_FILE_PATH=./dist/apps/api/logs/xpert-server.log # overrides LOG_DIR when set
LOG_FILE_MAX_SIZE=10m
LOG_FILE_MAX_FILES=5
# set true if running as a Demo
DEMO=false
#Installation 1.standalone 2.with-doris 3.with-starrocks
INSTALLATION_MODE=standalone
ALLOW_SUPER_ADMIN_ROLE=true
WEB_PORT=4200
# set to XpertAI API base URL
API_BASE_URL=http://localhost:3000
VITE_API_BASE_URL=http://localhost:3000
CLIENT_BASE_URL=http://localhost:4200
# Optional (comma-separated)
CORS_ALLOW_ORIGINS=https://app.xpertai.cn
# ------------------------------
# ChatKit Configuration
# ------------------------------
VITE_CHATKIT_FRAME_URL=/chatkit
# DB_TYPE: sqlite | postgres
DB_TYPE=postgres
# PostgreSQL Connection Parameters
# DB_HOST=localhost
# DB_PORT=5432
DB_NAME=ocap
DB_USER=postgres
DB_PASS=ocap_password
# JWT Session
SESSION_SECRET=metad_ocap
JWT_SECRET=jwtSecret
JWT_REFRESH_SECRET=jwtRefreshSecret
jwtExpiresIn=1h
jwtRefreshExpiresIn=7d
# REDIS_HOST=localhost
# REDIS_PORT=6379
REDIS_PASSWORD=redisPassword
# OLAP_HOST=localhost
# OLAP_PORT=8080
SECRETS_ENCRYPTION_KEY=your_secrets_encryption_key
# ------------------------------
# Message Handoff Configuration
# ------------------------------
HANDOFF_ROUTING_CONFIG_PATH=./docker/handoff-routing.example.yaml
XPERT_TEMPLATE_DIR=./packages/server-ai/src/xpert-template
# ------------------------------
# Copilot Checkpoint Retention
# ------------------------------
COPILOT_CHECKPOINT_RETENTION_EXECUTE_ENABLED=false
COPILOT_CHECKPOINT_RETENTION_DAYS=60
COPILOT_CHECKPOINT_OVERSIZED_MAX_PER_THREAD=10
COPILOT_CHECKPOINT_THREAD_MAX_BYTES=5368709120
COPILOT_CHECKPOINT_CLEANUP_BATCH_SIZE=1000
COPILOT_CHECKPOINT_CLEANUP_MAX_BATCHES_PER_RUN=20
COPILOT_CHECKPOINT_SCHEDULED_CLEANUP_MIN_BYTES=5368709120
# ------------------------------
# Vector Database Configuration
# ------------------------------
# The type of vector store to use.
# Supported values are `pgvector`, `milvus`, `chroma`.
VECTOR_STORE=pgvector
# ------------------------------
# File System Configuration
# ------------------------------
# File System
FILE_PROVIDER=LOCAL # LOCAL, S3, OSS
# AWS Config
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_REGION=
AWS_S3_BUCKET=
# Alibaba Cloud OSS Config
ALIYUN_ACCESS_KEY_ID=
ALIYUN_ACCESS_KEY_SECRET=
ALIYUN_REGION=
ALIYUN_OSS_ENDPOINT=oss-cn-shanghai.aliyuncs.com
ALIYUN_OSS_BUCKET=
# ------------------------------
# Email Configuration
# ------------------------------
# SMTP Mail Config
MAIL_FROM_ADDRESS=<Mail From Address>
MAIL_HOST=<Mail Host>
MAIL_PORT=<Mail Port>
MAIL_USERNAME=<Mail Username>
MAIL_PASSWORD=<Mail Password>
# ------------------------------
# Plugins Configuration
# ------------------------------
# Optional allow-list for external code plugin workspace paths.
# Built-in monorepo plugins do not need this; bootstrap resolves their Nx workspace root automatically.
# PLUGIN_WORKSPACE_ROOTS=absolute/path/to/workspace1;absolute/path/to/workspace2
PLUGINS=@xpert-ai/plugin-tongyi,@xpert-ai/plugin-dingtalk,@xpert-ai/plugin-lark,@xpert-ai/plugin-deepseek,@xpert-ai/plugin-xinference,@xpert-ai/plugin-zhipuai,@xpert-ai/plugin-openrouter,@xpert-ai/plugin-gemini,@xpert-ai/plugin-pdfium,@xpert-ai/plugin-zip,@xpert-ai/plugin-hana,@xpert-ai/plugin-milvus,@xpert-ai/plugin-openai-compatible,@xpert-ai/plugin-vllm,@xpert-ai/plugin-volcengine,@xpert-ai/plugin-mineru,@xpert-ai/plugin-fastgpt,@xpert-ai/plugin-ragflow,@xpert-ai/plugin-unstructured,@xpert-ai/plugin-mysql,@xpert-ai/plugin-minimax,@xpert-ai/plugin-model-retry,@xpert-ai/plugin-tool-retry,@xpert-ai/plugin-model-fallback,@xpert-ai/plugin-web-tools,@xpert-ai/plugin-zip-unzip-cli,@xpert-ai/plugin-mineru-cli,@xpert-ai/plugin-file-memory,@xpert-ai/plugin-advisor,@xpert-ai/plugin-dangling-tool-call,@xpert-ai/plugin-loop-guard,@xpert-ai/plugin-view-image
ORG_DEFAULT_XPERT_TEMPLATE_KEYS=xpert-authoring-assistant
# Milvus configuration. Only available when VECTOR_STORE is `milvus`.
# The milvus uri.
MILVUS_URI=http://localhost:19530
MILVUS_DATABASE=
MILVUS_TOKEN=
MILVUS_USER=
MILVUS_PASSWORD=
MILVUS_ENABLE_HYBRID_SEARCH=False
MILVUS_ANALYZER_PARAMS=
# Chroma configuration, only available when VECTOR_STORE is `chroma`
CHROMA_URL=http://localhost:8000
CHROMA_HOST=127.0.0.1
CHROMA_PORT=8000
CHROMA_TENANT=default_tenant
CHROMA_DATABASE=default_database
CHROMA_AUTH_PROVIDER=chromadb.auth.token_authn.TokenAuthClientProvider
CHROMA_AUTH_CREDENTIALS=
# The Weaviate endpoint URL. Only available when VECTOR_STORE is `weaviate`.
WEAVIATE_URL=http://weaviate:8080
WEAVIATE_API_KEY=vvf5ythahlkywhgusmcrgsx3td5ngdn8pkih
# MinerU
MINERU_API_BASE_URL=https://mineru.net/api/v4
MINERU_API_TOKEN=
# Unstructured
UNSTRUCTURED_API_BASE_URL=http://localhost:8000
UNSTRUCTURED_API_TOKEN=
# ------------------------------
# Others Configuration
# ------------------------------
# Sentry Client Key
SENTRY_DSN=
# Default Currency
DEFAULT_CURRENCY=CNY
# Default Country
DEFAULT_COUNTRY=CN
# Google Maps API Key
GOOGLE_MAPS_API_KEY=
# Chatwoot SDK Token
CHATWOOT_SDK_TOKEN=
# Restrict Access to Google Place Autocomplete
GOOGLE_PLACE_AUTOCOMPLETE=false
# Nebular CHAT API key for a map message type (which is required by Google Maps)
CHAT_MESSAGE_GOOGLE_MAP=
# Default Latitude and Longitude
DEFAULT_LATITUDE=
DEFAULT_LONGITUDE=
CLOUDINARY_CLOUD_NAME=
CLOUDINARY_API_KEY=
# Keymetrics settings (optional)
KEYMETRICS_SECRET_KEY=
KEYMETRICS_PUBLIC_KEY=
PM2_APP_NAME=metad
PM2_API_NAME=metad_api
WEB_CONCURRENCY=1
WEB_MEMORY=4096
# Toolsets
TAVILY_API_KEY=
SEARCHAPI_API_KEY=
EXASEARCH_API_KEY=
# OpenTelemetry tracing
# Keep disabled by default. Use a public endpoint for local tests, or set the
# Aliyun internal endpoint only inside the Aliyun runtime environment.
OTEL_TRACES_ENABLED=false
OTEL_SERVICE_NAME=xpert-api
OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=
OTEL_TRACES_SAMPLER_ARG=0.01
# Features Toggles
# Tests
OLLAMA_URL=http://localhost:11434
OLLAMA_EMBEDDINGS_MODEL=qwen2.5
# E2E Tests
E2E_API_URL=http://localhost:3000/api
E2E_AUTH_EMAIL=
E2E_AUTH_PASSWORD=
E2E_AUTH_TOKEN=