From c3311627049b4838af0e4b7c6a81741a71da7d7f Mon Sep 17 00:00:00 2001 From: AyrisAI Date: Thu, 14 May 2026 19:09:09 +0300 Subject: [PATCH] Move webhook secret to .env for better security --- app/api/webhooks/mail-signal/route.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/webhooks/mail-signal/route.ts b/app/api/webhooks/mail-signal/route.ts index fc5ad06..25bcccc 100644 --- a/app/api/webhooks/mail-signal/route.ts +++ b/app/api/webhooks/mail-signal/route.ts @@ -4,7 +4,7 @@ import { getLatestEmail } from '@/lib/mail'; import { sendTelegramNotification } from '@/lib/notifications'; // Bu kısım normalde .env içinde olmalı -const WEBHOOK_SECRET = 'besiktasK1903*'; +const WEBHOOK_SECRET = process.env.WEBHOOK_SIGNAL_SECRET || 'besiktasK1903*'; const IMAP_PASSWORD = process.env.MAILCOW_MASTER_PASSWORD || ''; // Dovecot Master Password tavsiye edilir // RFC 2047 Decode Fonksiyonu