-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathenv.sh.example
More file actions
248 lines (184 loc) · 6.57 KB
/
Copy pathenv.sh.example
File metadata and controls
248 lines (184 loc) · 6.57 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
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
#!/bin/bash
#============================================================
# OpenInsight 统一环境变量配置文件(模板)
#
# 使用方法:
# 1. 修改下方 HOST_IP 为实际部署服务器 IP
# 2. 运行 bash init-env.sh,脚本会自动生成为 env.sh
# 并随机填充所有密码和密钥
# 3. 如需自定义某项配置,在生成的 env.sh 中修改即可
#============================================================
#---------------------------
# 基础配置
#---------------------------
# 部署主机IP(用于外部访问URL)—— 必须修改为实际服务器 IP
HOST_IP=
# 域名(用于CSP策略等,可选)
DOMAIN=
# 自研组件镜像仓库地址(GitHub Container Registry)
# ARP / DMP / PI Agent / Code Interpreter / RAG API / SearXNG MCP 等自研镜像从此拉取
GHCR_REGISTRY=ghcr.io/openinsighthq
# Docker 网络名称
DOCKER_NETWORK=openinsight_default
# 时区
TIMEZONE=Asia/Shanghai
#---------------------------
# 中间件部署模式
# 值为 false 时部署内部 Docker 容器
# 值为 true 时使用外部中间件,跳过内部容器部署,需配置对应的外部连接参数
#---------------------------
USE_EXTERNAL_MYSQL=false
USE_EXTERNAL_REDIS=false
USE_EXTERNAL_MINIO=false
#---------------------------
# 端口配置
#---------------------------
# ARP 智能问答平台端口
ARP_PORT=33080
# DMP 管理平台端口
DMP_PORT=30080
# PI Agent
PI_HOST=http://openinsight-pi-agent:3000
PI_API_KEY=
# PI Agent LLM 配置
# PI_PROVIDER 默认 opencode,PI_MODEL 需根据实际使用的模型提供商配置
# OPENCODE_API_KEY 为 PI Agent 调用外部 LLM 的密钥,请部署后填入
PI_PROVIDER=opencode
PI_MODEL=minimax-m2.5-free
OPENCODE_API_KEY=
# Code Interpreter API 端口
CODE_INTERPRETER_API_PORT=8000
CODE_INTERPRETER_HTTPS_PORT=8443
# MinIO API 端口(仅本地访问,仅 USE_EXTERNAL_MINIO=false 时生效)
MINIO_API_PORT=19000
# MinIO Console 端口(仅本地访问,仅 USE_EXTERNAL_MINIO=false 时生效)
MINIO_CONSOLE_PORT=19001
# Mongo Express 端口
MONGO_EXPRESS_PORT=18081
#---------------------------
# MySQL 配置
#---------------------------
# MySQL 连接地址(内部部署时为容器名,外部时为实际IP或域名)
MYSQL_HOST=openinsight-mysql
# MySQL 端口
MYSQL_PORT=3306
# MySQL 用户名
MYSQL_USERNAME=root
# MySQL root 密码(内部部署时也是容器初始密码)—— init-env.sh 自动生成
MYSQL_ROOT_PASSWORD=
# DMP 使用的数据库名
DMP_DB_NAME=openinsight
#---------------------------
# Redis 配置
#---------------------------
# Redis 连接地址(内部部署时为容器名,外部时为实际IP或域名)
REDIS_HOST=openinsight-redis
# Redis 端口
REDIS_PORT=6379
# Redis 密码(内部部署时也是容器初始密码)—— init-env.sh 自动生成
REDIS_PASSWORD=
# DMP 使用的 Redis 数据库索引
DMP_REDIS_DATABASE=11
#---------------------------
# MinIO 配置
#---------------------------
# MinIO 内部通信地址(容器间通信,格式: hostname:port)
MINIO_INTERNAL_ENDPOINT=openinsight-minio:9000
# MinIO 外部访问端点(供客户端使用,格式: host:port)
# 内部部署时默认为 localhost:19000,外部时填写实际地址
MINIO_EXTERNAL_ENDPOINT=localhost:19000
# MinIO 主机地址
MINIO_CONSOLE_HOST=localhost
# MinIO 访问密钥 —— init-env.sh 自动生成
MINIO_ACCESS_KEY=
# MinIO 访问密钥 —— init-env.sh 自动生成
MINIO_SECRET_KEY=
# MinIO Bucket 和 Region
MINIO_BUCKET=code-interpreter-files
MINIO_REPORT_BUCKET=openinsight-report
MINIO_REGION=us-east-1
# MinIO 是否启用 HTTPS
MINIO_SECURE=false
#---------------------------
# 密码与密钥配置
# 以下所有密钥/密码均由 init-env.sh 自动生成,无需手动填写
#---------------------------
# MeiliSearch Master Key
MEILI_MASTER_KEY=
# Mongo Express 登录凭据
MONGO_EXPRESS_USERNAME=mongoadmin
MONGO_EXPRESS_PASSWORD=
#---------------------------
# MongoDB 账号配置
# 首次初始化(data 目录为空)时由 mongo 官方镜像自动执行 init/create-users.sh 创建;
# 已有数据的部署由 install.sh 通过 localhost exception 补建。密码请使用字母数字组合。
#---------------------------
# MongoDB 管理员账号(root 权限,位于 admin 库)—— 用于 mongo-express 及运维管理
MONGO_ROOT_USERNAME=mongoadmin
MONGO_ROOT_PASSWORD=
# LibreChat 应用账号(仅对 LibreChat 库拥有 readWrite 权限)
MONGO_APP_USERNAME=librechat
MONGO_APP_PASSWORD=
# LibreChat 只读账号(仅对 LibreChat 库拥有 read 权限,用于报表/排查)
MONGO_READONLY_USERNAME=librechat_readonly
MONGO_READONLY_PASSWORD=
# DMP API Key
DMP_API_KEY=
# DMP MyBatis Plus 字段加密密码(application.yaml: mybatis-plus.encryptor.password,必填无默认)
MYBATIS_PLUS_ENCRYPTOR_PASSWORD=
# DMP API Key(ARP 类型,sk- 前缀;写入 MySQL infra_api_key + Mongo agentapikeys)
ARP_API_KEY=
# LibreChat Code Interpreter API Key
LIBRECHAT_CODE_API_KEY=
# Code Interpreter Master API Key
CODE_INTERPRETER_MASTER_API_KEY=
# ARP JWT 密钥
ARP_JWT_SECRET=
ARP_JWT_REFRESH_SECRET=
# ARP 加密密钥
ARP_CREDS_KEY=
ARP_CREDS_IV=
# SearXNG 密钥
SEARXNG_SECRET_KEY=
# DMP 制式报告下载 Token Secret
STANDARD_REPORT_DOWNLOAD_TOKEN_SECRET=
#---------------------------
# 内部服务地址(Docker 容器间通信)
#---------------------------
# MongoDB
MONGODB_HOST=openinsight-mongodb
MONGODB_URI=mongodb://${MONGO_APP_USERNAME}:${MONGO_APP_PASSWORD}@${MONGODB_HOST}:27017/LibreChat?authSource=LibreChat
# MeiliSearch
MEILISEARCH_HOST=openinsight-meilisearch
MEILI_HOST_URL=http://openinsight-meilisearch:7700
# DMP API
DMP_API_HOST=openinsight-dmp-api
DMP_API_URL=http://openinsight-dmp-api:8090
# ARP API
ARP_API_HOST=openinsight-arp
ARP_API_URL=http://openinsight-arp:${ARP_PORT}
# Code Interpreter API
CODE_INTERPRETER_HOST=openinsight-code-interpreter-api
CODE_INTERPRETER_URL=http://openinsight-code-interpreter-api:8000
# SearXNG
SEARXNG_HOST=openinsight-searxng
SEARXNG_URL=http://openinsight-searxng:8080
# MCP SearXNG
MCP_SEARXNG_HOST=openinsight-mcp-searxng
MCP_SEARXNG_URL=http://openinsight-mcp-searxng:3000/mcp
#---------------------------
# 容器运行用户
#---------------------------
CONTAINER_UID=1000
CONTAINER_GID=1000
#---------------------------
# Code Interpreter 配置
#---------------------------
CONTAINER_POOL_PY=5
CONTAINER_POOL_JS=2
WAN_DNS_SERVERS='["223.5.5.5","223.6.6.6","114.114.114.114"]'
#---------------------------
# Code Interpreter 网段配置
#---------------------------
CODE_INTERPRETER_NETWORK_SUBNET=172.26.0.0/16
CODE_INTERPRETER_WAN_SUBNET=172.27.0.0/16