Blame view

.env.example 1.29 KB
fb68a0ef   tangwang   配置优化
1
  # Environment Configuration Template
2e3670ab   tangwang   index services
2
3
  # Copy this file to .env and update with your actual values.
  # 生产/测试凭证与远程登录方式见 docs/QUICKSTART.md §1.6
be52af70   tangwang   first commit
4
  
2e3670ab   tangwang   index services
5
  # Elasticsearch (生产默认 10.200.16.14:9200,本地可用 localhost)
be52af70   tangwang   first commit
6
  ES_HOST=http://localhost:9200
2e3670ab   tangwang   index services
7
  ES_USERNAME=saas
fb68a0ef   tangwang   配置优化
8
  ES_PASSWORD=
be52af70   tangwang   first commit
9
  
2e3670ab   tangwang   index services
10
  # Redis (生产默认 10.200.16.14:6479)
be52af70   tangwang   first commit
11
12
  REDIS_HOST=localhost
  REDIS_PORT=6479
fb68a0ef   tangwang   配置优化
13
  REDIS_PASSWORD=
be52af70   tangwang   first commit
14
15
  
  # DeepL Translation API
fb68a0ef   tangwang   配置优化
16
  DEEPL_AUTH_KEY=
be52af70   tangwang   first commit
17
  
be52af70   tangwang   first commit
18
19
  # API Service Configuration
  API_HOST=0.0.0.0
2a76641e   tangwang   config
20
  API_PORT=6002
d1d356f8   tangwang   脚本优化
21
22
23
24
25
26
27
28
29
30
  INDEXER_HOST=0.0.0.0
  INDEXER_PORT=6004
  
  # Optional service ports
  EMBEDDING_PORT=6005
  TRANSLATION_PORT=6006
  RERANKER_PORT=6007
  EMBEDDING_SERVICE_URL=http://127.0.0.1:6005
  TRANSLATION_SERVICE_URL=http://127.0.0.1:6006
  RERANKER_SERVICE_URL=http://127.0.0.1:6007/rerank
42e3aea6   tangwang   tidy
31
32
33
  TRANSLATION_PROVIDER=direct
  TRANSLATION_MODEL=qwen
  RERANK_PROVIDER=http
d1d356f8   tangwang   脚本优化
34
35
36
37
38
  
  # Optional startup switches (run.sh / scripts/service_ctl.sh)
  START_EMBEDDING=0
  START_TRANSLATOR=0
  START_RERANKER=0
be52af70   tangwang   first commit
39
40
  
  # Embedding Models
38f530ff   tangwang   文档完善
41
42
  TEXT_MODEL_DIR=/data/tw/models/bge-m3 # 已经改为web请求了,不使用本地模型
  IMAGE_MODEL_DIR=/data/tw/models/cn-clip # 已经改为web请求了,不使用本地模型
be52af70   tangwang   first commit
43
44
45
  
  # Cache Directory
  CACHE_DIR=.cache
fb68a0ef   tangwang   配置优化
46
  
2e3670ab   tangwang   index services
47
48
49
50
51
  # MySQL (Shoplazza,生产默认 10.200.16.14:3316)
  DB_HOST=localhost
  DB_PORT=3316
  DB_DATABASE=saas
  DB_USERNAME=saas
fb68a0ef   tangwang   配置优化
52
  DB_PASSWORD=