Move webhook secret to .env for better security

This commit is contained in:
AyrisAI
2026-05-14 19:09:09 +03:00
parent 871dc8406b
commit c331162704

View File

@@ -4,7 +4,7 @@ import { getLatestEmail } from '@/lib/mail';
import { sendTelegramNotification } from '@/lib/notifications'; import { sendTelegramNotification } from '@/lib/notifications';
// Bu kısım normalde .env içinde olmalı // 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 const IMAP_PASSWORD = process.env.MAILCOW_MASTER_PASSWORD || ''; // Dovecot Master Password tavsiye edilir
// RFC 2047 Decode Fonksiyonu // RFC 2047 Decode Fonksiyonu