Blame view

.env.example 1.53 KB
fb68a0ef   tangwang   配置优化
1
  # Environment Configuration Template
c7e80cc2   tangwang   新的 .env 管理机制如下:
2
3
  # Run: ./scripts/init_env.sh  (copies this file to .env if missing)
  # Then edit .env with your actual values.
2e3670ab   tangwang   index services
4
  # 生产/测试凭证与远程登录方式见 docs/QUICKSTART.md §1.6
c7e80cc2   tangwang   新的 .env 管理机制如下:
5
  # Note: Values with special chars (#, $, spaces) should be quoted, e.g. PASSWORD="my#pass"
be52af70   tangwang   first commit
6
  
2e3670ab   tangwang   index services
7
  # Elasticsearch (生产默认 10.200.16.14:9200,本地可用 localhost)
be52af70   tangwang   first commit
8
  ES_HOST=http://localhost:9200
2e3670ab   tangwang   index services
9
  ES_USERNAME=saas
fb68a0ef   tangwang   配置优化
10
  ES_PASSWORD=
be52af70   tangwang   first commit
11
  
07cf5a93   tangwang   START_EMBEDDING=...
12
13
  # Redis (生产默认 10.200.16.14:6479,密码见 docs/QUICKSTART.md §1.6)
  REDIS_HOST=10.200.16.14
be52af70   tangwang   first commit
14
  REDIS_PORT=6479
fb68a0ef   tangwang   配置优化
15
  REDIS_PASSWORD=
be52af70   tangwang   first commit
16
17
  
  # DeepL Translation API
fb68a0ef   tangwang   配置优化
18
  DEEPL_AUTH_KEY=
be52af70   tangwang   first commit
19
  
be52af70   tangwang   first commit
20
21
  # API Service Configuration
  API_HOST=0.0.0.0
2a76641e   tangwang   config
22
  API_PORT=6002
d1d356f8   tangwang   脚本优化
23
24
25
26
27
  INDEXER_HOST=0.0.0.0
  INDEXER_PORT=6004
  
  # Optional service ports
  EMBEDDING_PORT=6005
07cf5a93   tangwang   START_EMBEDDING=...
28
  TEI_PORT=8080
d1d356f8   tangwang   脚本优化
29
30
31
32
33
  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
34
35
  TRANSLATION_PROVIDER=direct
  TRANSLATION_MODEL=qwen
07cf5a93   tangwang   START_EMBEDDING=...
36
37
38
39
40
41
42
  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
43
  RERANK_PROVIDER=http
07cf5a93   tangwang   START_EMBEDDING=...
44
  RERANK_BACKEND=qwen3_vllm
d1d356f8   tangwang   脚本优化
45
46
47
48
49
  
  # Optional startup switches (run.sh / scripts/service_ctl.sh)
  START_EMBEDDING=0
  START_TRANSLATOR=0
  START_RERANKER=0
07cf5a93   tangwang   START_EMBEDDING=...
50
  START_TEI=0
be52af70   tangwang   first commit
51
52
53
  
  # Cache Directory
  CACHE_DIR=.cache
fb68a0ef   tangwang   配置优化
54
  
07cf5a93   tangwang   START_EMBEDDING=...
55
56
  # MySQL (Shoplazza,生产默认 10.200.16.14:3316,root 密码见 docs/QUICKSTART.md §1.6)
  DB_HOST=10.200.16.14
2e3670ab   tangwang   index services
57
58
  DB_PORT=3316
  DB_DATABASE=saas
07cf5a93   tangwang   START_EMBEDDING=...
59
  DB_USERNAME=root
fb68a0ef   tangwang   配置优化
60
  DB_PASSWORD=