Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions docs/usage/environment_variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,5 +227,21 @@ environment_variables: dict[str, Callable[[], Any]] = {

# Worker process health check timeout when waiting for responses in seconds (default: 30)
"FD_WORKER_ALIVE_TIMEOUT": lambda: int(os.getenv("FD_WORKER_ALIVE_TIMEOUT", "30")),

# Whether to collect user information, default 0 (collect); 1 (do not collect)
"DO_NOT_TRACK" : lambda: (os.getenv("DO_NOT_TRACK", "0")) == "1",

# Usage statistics report server address
"FD_USAGE_STATS_SERVER": lambda: os.getenv(
"FD_USAGE_STATS_SERVER", "http://fd-stats.baidu-int.com/fd/report/periodic"
),

# Usage statistics source information, can be set by user
"FD_USAGE_SOURCE": lambda: os.getenv("FD_USAGE_SOURCE", "Unknown"),

# FastDeploy configuration root directory
"FD_CONFIG_ROOT": lambda: os.path.expanduser(
os.getenv("FD_CONFIG_ROOT", os.path.join(os.path.expanduser("~"), ".config", "fastdeploy"))
),
}
```
17 changes: 16 additions & 1 deletion docs/zh/usage/environment_variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,5 +227,20 @@ environment_variables: dict[str, Callable[[], Any]] = {

# Worker 进程响应等待时的健康检查超时时间(秒),默认 30 秒
"FD_WORKER_ALIVE_TIMEOUT": lambda: int(os.getenv("FD_WORKER_ALIVE_TIMEOUT", "30")),

# 控制是否收集用户信息,默认 0(收集);1(不收集)
"DO_NOT_TRACK" : lambda: (os.getenv("DO_NOT_TRACK", "0")) == "1",

# 使用情况统计报告服务地址
"FD_USAGE_STATS_SERVER": lambda: os.getenv(
"FD_USAGE_STATS_SERVER", "http://fd-stats.baidu-int.com/fd/report/periodic"
),

# 使用情况统计的来源信息,用户可主动设置
"FD_USAGE_SOURCE": lambda: os.getenv("FD_USAGE_SOURCE", "Unknown"),

# FastDeploy 配置根目录
"FD_CONFIG_ROOT": lambda: os.path.expanduser(
os.getenv("FD_CONFIG_ROOT", os.path.join(os.path.expanduser("~"), ".config", "fastdeploy"))
),
}
```
Loading