Operating mode in the admin (test mode sends all mail to a test recipient until switched live), bot protection for booking requests, mail rendering tests, mail:test command

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Lars StommerandClaude Opus 5.5 committed 2026-10-22 23:01:44 +02:00
1 parent fdcb68d578
commit d018c97be4
22 files changed
+698 -23

No files matched your search

+17 -1
View File
@@ -50,9 +50,25 @@
| Further retention periods (docs/LOESCHKONZEPT.md). The defaults are PROPOSALS – please have them
| confirmed according to the general legal opinion (tax advisor / legal advice) and adjust here.
*/
// Test environments: every e-mail goes to this address only (instead of guests/landlord). Empty = normal delivery.
// Hard override: every e-mail goes to this address only, regardless of the operating mode in the admin
// (System › Betrieb). Empty = the admin setting decides (test mode → test recipient, live → real recipients).
'mail_redirect_to' => env('FEWO_MAIL_REDIRECT_TO'),
// Protection of the booking form against bots (no external captcha service – GDPR). Every request holds
// the dates for the hold time, so automated requests could block the calendar.
'spam' => [
// Faster than this after opening the page = bot; silently ignored.
'min_seconds' => (int) env('FEWO_SPAM_MIN_SECONDS', 4),
'per_ip_per_hour' => (int) env('FEWO_SPAM_PER_IP_PER_HOUR', 5),
'per_email_per_day' => (int) env('FEWO_SPAM_PER_EMAIL_PER_DAY', 3),
// Requests/offers of one e-mail address that hold dates at the same time.
'open_requests_per_email' => (int) env('FEWO_SPAM_OPEN_REQUESTS_PER_EMAIL', 2),
// All website requests together (flood protection).
'total_per_hour' => (int) env('FEWO_SPAM_TOTAL_PER_HOUR', 30),
// Links allowed in the message.
'max_links' => (int) env('FEWO_SPAM_MAX_LINKS', 1),
],
// Daily database backup (php artisan backup:database): number of dumps kept in storage/app/private/backups.
'backup' => [
'keep' => (int) env('FEWO_BACKUP_KEEP', 14),