mirror of
https://github.com/wnlen/clash-for-linux.git
synced 2026-02-04 10:11:28 +08:00
Add options for showing Clash API secrets
Add configuration options for displaying secrets in output
This commit is contained in:
6
.env
6
.env
@ -31,6 +31,12 @@ export CLASH_SUBSCRIPTION=''
|
|||||||
# 留空时:脚本可自动生成随机值(若你的启动脚本支持)
|
# 留空时:脚本可自动生成随机值(若你的启动脚本支持)
|
||||||
export CLASH_SECRET=''
|
export CLASH_SECRET=''
|
||||||
|
|
||||||
|
# 是否在启动输出中显示完整 Secret(不推荐)
|
||||||
|
CLASH_SHOW_SECRET=false
|
||||||
|
|
||||||
|
# 是否显示脱敏 Secret(推荐)
|
||||||
|
CLASH_SHOW_SECRET_MASKED=true
|
||||||
|
|
||||||
# External Controller(Clash RESTful API)
|
# External Controller(Clash RESTful API)
|
||||||
# ⚠️ 安全建议:
|
# ⚠️ 安全建议:
|
||||||
# - 默认仅监听本机:127.0.0.1:9090 (推荐)
|
# - 默认仅监听本机:127.0.0.1:9090 (推荐)
|
||||||
|
|||||||
Reference in New Issue
Block a user