# ===== DeepSeek Harness Web Docker 配置 | DeepSeek Harness Web Docker configuration ===== # 复制为 .env 后编辑(.env 不入库,含敏感信息) # # Copy to .env and edit (.env is not committed; it contains sensitive info) # # ⚠️ 升级警告 — 升级到含 dsh 0.1.2-rc.1+ 鉴权迁移的版本时,必须先 `git pull` 同步 # docker-compose.yml / Caddyfile / entrypoint.sh(以及其 token 抓取后台任务),仅 # `docker compose pull` 拉新 image 配旧 compose 文件会导致 healthcheck 永远 unhealthy # 且 web 服务裸奔(无鉴权)。详见 PR #7 commit message 与 README Quick Start。 # # ⚠️ Upgrade warning — to upgrade to a version with dsh 0.1.2-rc.1+ auth migration, # you must `git pull` first to sync docker-compose.yml / Caddyfile / entrypoint.sh # (and its token-extraction background task). `docker compose pull` alone (new image, # old compose file) leaves healthcheck permanently unhealthy AND exposes the web # service without auth. See PR #7 commit message and README Quick Start for details. # dsh 0.1.2-rc.1+:鉴权迁回 dsh 自身(一次性 token + 持久 cookie),caddy basic auth 已移除。 # 下面两个变量自 0.1.2-rc.1 起不再被 caddy 使用,**仅在回退到 ≤0.1.1-rc.2 时生效**—— # 留作兼容位,默认值仍按旧版填写;不修改即可平滑运行新版本(无副作用,仅占用 .env 几行) # # dsh 0.1.2-rc.1+: authentication moved into dsh itself (one-time token + persistent cookie); # Caddy basic auth is removed. The two variables below are unused by Caddy since 0.1.2-rc.1 # and only take effect on a rollback to ≤0.1.1-rc.2 — kept for compatibility, defaults # unchanged (no side effects on 0.1.2-rc.1+; just a few .env lines) DSH_AUTH_USER=admin DSH_AUTH_PASSWORD=change-me # DeepSeek API Key(必填,settings.yaml 经 apiKeyEnv 引用) # # DeepSeek API Key (required; referenced by settings.yaml via apiKeyEnv) DEEPSEEK_API_KEY=sk-xxxxxxxxxxxxxxxx # 宿主机对外端口(可选,默认 3080;本机已有服务占用时请修改) # # Host-facing port (optional, default 3080; change it if the local port is already in use) DSH_WEB_PORT=3080 # 额外受信 Host(可选,逗号分隔;公网域名/自定义域名访问时填写, # 注入 profile 的 cordis.patch.yml。仅当该文件不存在或仍为空模板时自动注入, # 已维护则跳过(请直接编辑该文件)。默认靠 Caddy 改写 loopback 已覆盖常规访问) # # Additional trusted hosts (optional, comma-separated; fill in for public/custom domain access, # injected into the profile's cordis.patch.yml. Auto-injected only when the file is absent or still # the empty template; user-maintained files are skipped (edit the file directly). # The Caddy loopback rewrite covers regular access by default) #DSH_TRUSTED_HOSTS=dsh.example.com,example.org # dsh 版本(构建期,可选;默认 0.1.2-rc.1,改后需 --build 重建镜像) # # dsh version (build-time, optional; default 0.1.2-rc.1; rebuild with --build after changing) #DSH_VERSION=0.1.2-rc.1