Blame view

.env.example 1.39 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
  
07cf5a93   tangwang   START_EMBEDDING=...
10
11
  # Redis (生产默认 10.200.16.14:6479,密码见 docs/QUICKSTART.md §1.6)
  REDIS_HOST=10.200.16.14
be52af70   tangwang   first commit
12
  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
  INDEXER_HOST=0.0.0.0
  INDEXER_PORT=6004
  
  # Optional service ports
  EMBEDDING_PORT=6005
07cf5a93   tangwang   START_EMBEDDING=...
26
  TEI_PORT=8080
d1d356f8   tangwang   脚本优化
27
28
29
30
31
  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
32
33
  TRANSLATION_PROVIDER=direct
  TRANSLATION_MODEL=qwen
07cf5a93   tangwang   START_EMBEDDING=...
34
35
36
37
38
39
40
  EMBEDDING_BACKEND=tei
  TEI_BASE_URL=http://127.0.0.1:8080
  TEI_USE_GPU=1
  TEI_VERSION=1.9
  TEI_MAX_BATCH_TOKENS=2048
  TEI_MAX_CLIENT_BATCH_SIZE=8
  TEI_HEALTH_TIMEOUT_SEC=300
42e3aea6   tangwang   tidy
41
  RERANK_PROVIDER=http
07cf5a93   tangwang   START_EMBEDDING=...
42
  RERANK_BACKEND=qwen3_vllm
d1d356f8   tangwang   脚本优化
43
44
45
46
47
  
  # Optional startup switches (run.sh / scripts/service_ctl.sh)
  START_EMBEDDING=0
  START_TRANSLATOR=0
  START_RERANKER=0
07cf5a93   tangwang   START_EMBEDDING=...
48
  START_TEI=0
be52af70   tangwang   first commit
49
50
51
  
  # Cache Directory
  CACHE_DIR=.cache
fb68a0ef   tangwang   配置优化
52
  
07cf5a93   tangwang   START_EMBEDDING=...
53
54
  # MySQL (Shoplazza,生产默认 10.200.16.14:3316,root 密码见 docs/QUICKSTART.md §1.6)
  DB_HOST=10.200.16.14
2e3670ab   tangwang   index services
55
56
  DB_PORT=3316
  DB_DATABASE=saas
07cf5a93   tangwang   START_EMBEDDING=...
57
  DB_USERNAME=root
fb68a0ef   tangwang   配置优化
58
  DB_PASSWORD=