Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Docs: document all SMTP_* and other undocumented env vars for self-hosting

未关闭 适合新手
#1,049 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
82/100
Issue 类型
文档
描述清晰度
描述清楚
活跃度
活跃
技术栈
typescript
领域
documentation

调研方向

先比较 .env.example 与 packages/backend/src/settings/email.service.ts、knowledge-graph/identifier.ts 以及 issue 中提到的其他位置读取的环境变量。然后,根据这些设置检查 docs/deployment.md。完成标准是:.env.example 中列出 SMTP 变量和其他五个未记录的变量,并注明其默认值或行为;部署指南中记录全部七个 SMTP 变量;误导性注释得到更正。

由索引模型根据 Issue 内容生成。

描述

enhancement
Problem

When self-hosting, I couldn't find a complete list of environment variables:

  • .env.example L269 says the cloud jobs "mail through the SMTP_* settings above", but .env.example doesn't define any SMTP_* variables.
  • packages/backend/src/settings/email.service.ts (L166–178) reads SMTP_HOST, SMTP_PORT (default 587), SMTP_USER, SMTP_PASS, SMTP_FROM, SMTP_SECURE and SMTP_REPLY_TO. docs/deployment.md L427 lists only the first four.
  • These are read in code but not documented anywhere: KG_HASH_SECRET (knowledge-graph/identifier.ts L122; falls back to ENCRYPTION_KEY, then JWT_SECRET, then a hardcoded 'anythingmcp-kg-dev-secret'), KG_MCP_TOOL (off disables it), KG_OBSERVE_COOLDOWN_SEC (default 45), SHUTDOWN_TIMEOUT_MS (default 20000), SENTRY_MCP_TRACES_SAMPLE_RATE (default: base rate / 5).
Proposed Solution

Add a commented SMTP block (plus the variables above) to .env.example, and list all seven SMTP variables in docs/deployment.md. I'm happy to send a PR.

Alternatives Considered

At minimum, reword the L269 comment so it doesn't refer to settings "above".

Area

Documentation

Additional Context

No response

主要语言
TypeScript
星标
856
派生
82
平均合并
6 小时 15 分钟
30 天内合并 PR
141

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

HelpCode-ai/anythingmcp 的其他 Issue

查看 HelpCode-ai/anythingmcp 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。