From af063a2da459aff025444c7882f7a329a20de579 Mon Sep 17 00:00:00 2001 From: Meng Sen Date: Tue, 3 Dec 2024 13:02:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=91=E5=B8=83=E5=BA=94=E7=94=A8=20?= =?UTF-8?q?=E9=97=AE=E9=A2=98=E5=8F=8D=E9=A6=88=E5=B9=B3=E5=8F=B0=20(?= =?UTF-8?q?=E6=9B=BF=E5=85=94=E5=B0=8F=E5=B7=A2)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Meng Sen --- apps/fider/0.24.0/data.yml | 83 ++++++++++++++++++++++++++++---------- apps/fider/README.md | 4 ++ 2 files changed, 66 insertions(+), 21 deletions(-) diff --git a/apps/fider/0.24.0/data.yml b/apps/fider/0.24.0/data.yml index dbca45ee..02d553a1 100644 --- a/apps/fider/0.24.0/data.yml +++ b/apps/fider/0.24.0/data.yml @@ -77,45 +77,44 @@ additionalProperties: type: password - default: "" edit: true - envKey: EMAIL_SMTP_HOST - labelZh: 邮件服务 地址 - labelEn: Mailer Server Address + envKey: EMAIL_NOREPLY + labelZh: 发件人地址 + labelEn: Mailer Sender Address required: true type: text + - default: "" + edit: true + envKey: EMAIL_SMTP_HOST + labelZh: 主机地址 (SMTP) + labelEn: Mailer Host (SMTP) + required: false + type: text - default: 465 edit: true envKey: EMAIL_SMTP_PORT - labelZh: 邮件服务 端口 - labelEn: Mailer Server Port + labelZh: 端口 (SMTP) + labelEn: Mailer Port (SMTP) required: true type: number - default: "" edit: true envKey: EMAIL_SMTP_USERNAME - labelZh: 邮件服务 用户名 - labelEn: Mailer Username - required: true + labelZh: 用户名 (SMTP) + labelEn: Mailer Username (SMTP) + required: false type: text - default: "" edit: true envKey: EMAIL_SMTP_PASSWORD - labelZh: 邮件服务 密码 - labelEn: Mailer Password - required: true + labelZh: 密码 (SMTP) + labelEn: Mailer Password (SMTP) + required: false type: text - - default: "" - edit: true - envKey: EMAIL_NOREPLY - labelZh: 邮件服务 发件人 - labelEn: Mailer From - required: true - type: text - - default: "true" edit: true envKey: EMAIL_SMTP_ENABLE_STARTTLS - labelZh: 邮件服务 启用 STARTTLS - labelEn: Mailer Enable STARTTLS + labelZh: 启用 STARTTLS (SMTP) + labelEn: Enable STARTTLS (SMTP) required: true type: select values: @@ -123,3 +122,45 @@ additionalProperties: value: "true" - label: "否" value: "false" + - default: "" + edit: true + envKey: EMAIL_MAILGUN_API + labelZh: API 地址 (Mailgun) + labelEn: API URL (Mailgun) + required: false + type: text + - default: "" + edit: true + envKey: EMAIL_MAILGUN_DOMAIN + labelZh: 域名 (Mailgun) + labelEn: Domain (Mailgun) + required: false + type: text + - default: "US" + edit: true + envKey: EMAIL_MAILGUN_REGION + labelZh: 区域 (Mailgun) + labelEn: Region (Mailgun) + required: false + type: text + - default: "us-east-1" + edit: true + envKey: EMAIL_AWSSES_REGION + labelZh: 区域 (AWS SES) + labelEn: Region (AWS SES) + required: false + type: text + - default: "" + edit: true + envKey: EMAIL_AWSSES_ACCESS_KEY_ID + labelZh: 授权 ID (AWS SES) + labelEn: Access Key ID (AWS SES) + required: false + type: text + - default: "" + edit: true + envKey: EMAIL_AWSSES_SECRET_ACCESS_KEY + labelZh: 授权密钥 (AWS SES) + labelEn: Access Key Secret (AWS SES) + required: false + type: text diff --git a/apps/fider/README.md b/apps/fider/README.md index d7ae55dd..5b897e86 100644 --- a/apps/fider/README.md +++ b/apps/fider/README.md @@ -64,6 +64,10 @@ Fider 是 100% 开源。 可以从 [JWT Secret Generator](https://jwtsecret.com/generate) 生成 +### `邮件` 配置 + +您必须在 `SMTP` `Mailgun` 或 `AWS SES` 中任选其一作为邮件服务,否则无法发送邮件,也无法注册用户。 + --- ![Ms Studio](https://file.lifebus.top/imgs/ms_blank_001.png)