onesvm-browser-server/server/.env.example
chii eb972dfa93 feat: 落地 browser-server 控制面并打通 mgr1 海外订阅
单二进制三角色 + Dock 适配器 + Swarm stack 达到可部署态;mgr1 实测订阅经 central-proxy bootstrap,探活 alive=41/52。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-02 15:05:12 +08:00

40 lines
No EOL
2.2 KiB
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# onesvm-browser-server 环境变量说明(仅变量名与用途;禁写任何真实密钥值)。
# 密钥类必须经部署注入(docker secret / env ${VAR:?required}),fail-closed,无默认值。
# ---- 密钥类(MustEnv fail-closed,缺失即拒绝启动)----
# gateway:key 哈希全局盐(SHA-256("lookup:"+salt+":"+plaintext))。
BROWSER_SERVER_KEYS_SEED=
# gateway:admin 面静态 token(X-Service-Token 比对值;仅 overlay 内网使用)。
BROWSER_SERVER_ADMIN_TOKEN=
# proxymanager:Clash 订阅 URL(逗号分隔多订阅容灾;永不入日志/不入 git)。
PROXY_SUB_URLS=
# proxymanager:订阅拉取专用 HTTP 代理(非密钥;缺省空=直连)。
# mgr1 测试:http://192.168.1.53:7890(central-proxy);探活仍走自家 mihomo。
BROWSER_SERVER_SUB_FETCH_PROXY=
# ---- 非密钥配置(可默认)----
# 监听地址(gateway :8640 / scheduler :8641 / proxymanager :8642)。
BROWSER_SERVER_LISTEN=
# SQLite 路径(gateway/scheduler 共库;scheduler 为单写者)。
BROWSER_SERVER_DB_PATH=/data/browser-server.db
# scheduler 地址(gateway 入队/轮询)。
BROWSER_SERVER_SCHEDULER_URL=http://scheduler:8641
# scheduler:队列接纳上限(running+queued)与 worker 并发。
BROWSER_SERVER_ADMIT_MAX=60
BROWSER_SERVER_WORKERS=8
# scheduler:五适配器引擎地址。
BROWSER_SERVER_SEARXNG_CN_URL=http://searxng-cn:8080
BROWSER_SERVER_SEARXNG_GLOBAL_URL=http://searxng-global:8080
BROWSER_SERVER_TRAFILATURA_URL=http://trafilatura:8080
BROWSER_SERVER_LIGHTPANDA_CDP_HOST=lightpanda:9222
BROWSER_SERVER_SHELL_CDP_HOST=headless-shell:9222
# proxymanager:mihomo controller 与配置目录。
MIHOMO_CONTROLLER_URL=http://mihomo:19090
BROWSER_SERVER_MIHOMO_SECRET=
BROWSER_SERVER_MIHOMO_CONFIG_DIR=/data/mihomo
# mihomo 容器内热载路径(同卷不同挂载点;缺省 /root/.config/mihomo/config.yaml)。
BROWSER_SERVER_MIHOMO_RELOAD_PATH=/root/.config/mihomo/config.yaml
#
# 【配额口径声明 · ITER-3 DECL-1】monthly_quota 字段留位未消费:
# 首版仅日窗(daily)生效;月窗双窗口结算为 follow-up(部署轮后按需求定)。
# 签发时 monthly>0 不会生效——响应 note 字段已声明此口径。