feat: add custom webhook headers config #50

This commit is contained in:
engigu
2026-03-09 14:03:04 +08:00
parent 8642a2d41f
commit e7da316c90
3 changed files with 27 additions and 4 deletions
+1
View File
@@ -76,6 +76,7 @@ const channelConfigFields: Record<string, { key: string; label: string; required
],
Custom: [
{ key: 'webhook', label: 'Webhook URL', required: true, placeholder: 'https://...' },
{ key: 'headers', label: '请求头', required: false, placeholder: 'JSON格式,如 {"Authorization": "Bearer ..."}', type: 'textarea' },
{ key: 'body', label: '请求体模板', required: false, placeholder: '使用 TEXT 作为消息内容占位符', type: 'textarea' },
],
Ntfy: [