Push-Zeitmail: signierter Token für Zeit-Links
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
cdc814ae09
commit
5b7365b99e
3 files changed
+96
No files matched your search
@@ -121,6 +121,14 @@ export const config = {
|
||||
},
|
||||
|
||||
publicBaseUrl: (process.env.PORTAL_PUBLIC_URL || 'https://project.webklar.com').replace(/\/$/, ''),
|
||||
// Ticketsystem (WOMS), z. B. fuer den Link "Ticket oeffnen" in der Push-Zeitmail
|
||||
womsBaseUrl: (process.env.WOMS_PUBLIC_URL || 'https://ticket.webklar.com').replace(/\/$/, ''),
|
||||
|
||||
// Push-Zeitmail: signierte Links zum Eintragen der Zeit eines Git-Pushes (ohne Login)
|
||||
pushTime: {
|
||||
secret: process.env.PUSH_TIME_SECRET || process.env.SESSION_SECRET || '',
|
||||
ttlDays: 14,
|
||||
},
|
||||
|
||||
products,
|
||||
mailStorage,
|
||||
@@ -281,6 +289,9 @@ export function assertServerConfig() {
|
||||
if (!config.sessionSecret || config.sessionSecret.length < 32) {
|
||||
console.warn('[config] SESSION_SECRET fehlt oder ist zu kurz (min. 32 Zeichen).')
|
||||
}
|
||||
if (!config.pushTime.secret || config.pushTime.secret.length < 32) {
|
||||
console.warn('[config] PUSH_TIME_SECRET (bzw. SESSION_SECRET) fehlt oder ist zu kurz – Zeit-Links aus Push-Mails funktionieren nicht.')
|
||||
}
|
||||
if (!config.appwrite.apiKey) {
|
||||
console.warn('[config] APPWRITE_API_KEY fehlt – DB-Zugriff und Webhook schlagen fehl.')
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user