.env.example 3.0 KB

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