From 562eb5c309fbbb78accb7f3ca432f0989433c5eb Mon Sep 17 00:00:00 2001 From: DarkSky Date: Tue, 17 Feb 2026 11:16:54 +0800 Subject: [PATCH] feat: update config --- .docker/selfhost/schema.json | 4 ++-- packages/backend/server/src/core/mail/config.ts | 4 ++-- packages/frontend/admin/src/config.json | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.docker/selfhost/schema.json b/.docker/selfhost/schema.json index f9eece72ad..ef819a6089 100644 --- a/.docker/selfhost/schema.json +++ b/.docker/selfhost/schema.json @@ -222,7 +222,7 @@ }, "SMTP.sender": { "type": "string", - "description": "Sender of all the emails (e.g. \"AFFiNE Self Hosted \")\n@default \"AFFiNE Self Hosted \"\n@environment `MAILER_SENDER`", + "description": "Sender of all the emails (e.g. \"AFFiNE Self Hosted <noreply@example.com>\")\n@default \"AFFiNE Self Hosted \"\n@environment `MAILER_SENDER`", "default": "AFFiNE Self Hosted " }, "SMTP.ignoreTLS": { @@ -262,7 +262,7 @@ }, "fallbackSMTP.sender": { "type": "string", - "description": "Sender of all the emails (e.g. \"AFFiNE Self Hosted \")\n@default \"\"", + "description": "Sender of all the emails (e.g. \"AFFiNE Self Hosted <noreply@example.com>\")\n@default \"\"", "default": "" }, "fallbackSMTP.ignoreTLS": { diff --git a/packages/backend/server/src/core/mail/config.ts b/packages/backend/server/src/core/mail/config.ts index 88b73b5050..97c61f41a7 100644 --- a/packages/backend/server/src/core/mail/config.ts +++ b/packages/backend/server/src/core/mail/config.ts @@ -56,7 +56,7 @@ defineModuleConfig('mailer', { env: 'MAILER_PASSWORD', }, 'SMTP.sender': { - desc: 'Sender of all the emails (e.g. "AFFiNE Self Hosted ")', + desc: 'Sender of all the emails (e.g. "AFFiNE Self Hosted <noreply@example.com>")', default: 'AFFiNE Self Hosted ', env: 'MAILER_SENDER', }, @@ -92,7 +92,7 @@ defineModuleConfig('mailer', { default: '', }, 'fallbackSMTP.sender': { - desc: 'Sender of all the emails (e.g. "AFFiNE Self Hosted ")', + desc: 'Sender of all the emails (e.g. "AFFiNE Self Hosted <noreply@example.com>")', default: '', }, 'fallbackSMTP.ignoreTLS': { diff --git a/packages/frontend/admin/src/config.json b/packages/frontend/admin/src/config.json index f2a0b58cef..42709642b7 100644 --- a/packages/frontend/admin/src/config.json +++ b/packages/frontend/admin/src/config.json @@ -116,7 +116,7 @@ }, "SMTP.sender": { "type": "String", - "desc": "Sender of all the emails (e.g. \"AFFiNE Self Hosted \")", + "desc": "Sender of all the emails (e.g. \"AFFiNE Self Hosted <noreply@example.com>\")", "env": "MAILER_SENDER" }, "SMTP.ignoreTLS": { @@ -150,7 +150,7 @@ }, "fallbackSMTP.sender": { "type": "String", - "desc": "Sender of all the emails (e.g. \"AFFiNE Self Hosted \")" + "desc": "Sender of all the emails (e.g. \"AFFiNE Self Hosted <noreply@example.com>\")" }, "fallbackSMTP.ignoreTLS": { "type": "Boolean",