Deploy FeWo mit PipelineManager / deploy (push) Successful in 5m11s
- Jeder Mandant verbindet unter „System › KI-Anbindung“ seinen eigenen Zugang: Anbieter (Anthropic oder OpenRouter), API-Schlüssel, Modell für die erste Auswertung und für die Prüfung – keine Modellkennung im Code, kein zentraler Betreiberschlüssel (FEWO_AI_API_KEY entfällt). - Gespeichert im bestehenden TenantService (ai_guest_mail): Schlüssel verschlüsselt, nie wieder angezeigt, nie in Meldungen; Anbieter/Modelle in settings, Prüfergebnis in check_status/check_message/checked_at. - Feste Endpunkte je Anbieter (AiProvider), nicht konfigurierbar. OpenRouter mit response_format json_schema (strict) und provider.require_parameters. - „Verbindung prüfen“ testet beide Modelle. Ein abgelehnter Zugang (401/402/403) schaltet die Auswertung für den Mandanten ab, meldet es im Postfach der Verwaltung; Nachrichten bleiben zur Prüfung im Posteingang. - Zweistufige Extraktion und ihre Sicherheitsregeln unverändert. - Zielarchitektur §3.8, Umsetzungsplan U6, Bericht, Drehbuch, Status. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
157 lines
7.2 KiB
PHP
157 lines
7.2 KiB
PHP
<?php
|
||
|
||
return [
|
||
|
||
/*
|
||
|--------------------------------------------------------------------------
|
||
| Landlord
|
||
|--------------------------------------------------------------------------
|
||
|
|
||
| Shown in e-mails and documents. Notifications about new requests are sent
|
||
| to notification_email.
|
||
|
|
||
*/
|
||
|
||
'owner' => [
|
||
'name' => env('FEWO_OWNER_NAME', 'Brigitte Stommer'),
|
||
'street' => env('FEWO_OWNER_STREET', 'Erbstollen 3'),
|
||
'city' => env('FEWO_OWNER_CITY', '44225 Dortmund'),
|
||
'phone' => env('FEWO_OWNER_PHONE', '0170 8165208'),
|
||
'email' => env('FEWO_OWNER_EMAIL', 'fewo@stommer.de'),
|
||
],
|
||
|
||
'notification_email' => env('FEWO_NOTIFICATION_EMAIL', env('FEWO_OWNER_EMAIL', 'fewo@stommer.de')),
|
||
|
||
'bank' => [
|
||
'account_holder' => env('FEWO_BANK_ACCOUNT_HOLDER'),
|
||
'iban' => env('FEWO_BANK_IBAN'),
|
||
'bic' => env('FEWO_BANK_BIC'),
|
||
'bank_name' => env('FEWO_BANK_NAME'),
|
||
],
|
||
|
||
/*
|
||
| Days after confirmation within which the deposit has to be paid.
|
||
*/
|
||
'deposit_due_days' => (int) env('FEWO_DEPOSIT_DUE_DAYS', 7),
|
||
|
||
/*
|
||
| Days after departure when guests are asked for a review.
|
||
*/
|
||
'review_request_after_days' => (int) env('FEWO_REVIEW_REQUEST_AFTER_DAYS', 2),
|
||
|
||
/*
|
||
| Years after the last stay after which guest data is anonymised automatically.
|
||
| Default 10 years because booking records are accounting documents (§ 147 AO);
|
||
| please confirm with your tax advisor.
|
||
*/
|
||
'guest_retention_years' => (int) env('FEWO_GUEST_RETENTION_YEARS', 10),
|
||
|
||
/*
|
||
| 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.
|
||
*/
|
||
// 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),
|
||
],
|
||
|
||
'retention' => [
|
||
// Requests/offers that never became a binding booking: guest data anonymised after … months.
|
||
'inquiry_months' => (int) env('FEWO_RETENTION_INQUIRY_MONTHS', 6),
|
||
// Text excerpt of processed portal e-mails (may contain names) is removed after … days.
|
||
'portal_email_excerpt_days' => (int) env('FEWO_RETENTION_PORTAL_EMAIL_EXCERPT_DAYS', 90),
|
||
// Marketing attribution (UTM parameters, "how did you hear about us") is removed after … months.
|
||
'attribution_months' => (int) env('FEWO_RETENTION_ATTRIBUTION_MONTHS', 24),
|
||
],
|
||
|
||
/*
|
||
|--------------------------------------------------------------------------
|
||
| Portal synchronisation
|
||
|--------------------------------------------------------------------------
|
||
*/
|
||
|
||
'channels' => [
|
||
// An import without success for this long triggers an alert.
|
||
'stale_after_minutes' => (int) env('FEWO_CHANNEL_STALE_AFTER_MINUTES', 60),
|
||
// Automatic offers and the guest's acceptance need an import at most this old (sync runs every 5 minutes).
|
||
'fresh_within_minutes' => (int) env('FEWO_CHANNEL_FRESH_WITHIN_MINUTES', 15),
|
||
// Open manual blocking tasks are reminded after this time.
|
||
'task_reminder_after_minutes' => (int) env('FEWO_CHANNEL_TASK_REMINDER_AFTER_MINUTES', 120),
|
||
// Token for GET /health/sync (external monitoring, e.g. n8n). Empty = endpoint disabled.
|
||
'health_token' => env('FEWO_HEALTH_TOKEN'),
|
||
],
|
||
|
||
/*
|
||
| Mailbox that receives the portals' booking notifications (fast path for portal bookings).
|
||
| Read via IMAP every minute; messages are left unread. Empty host = disabled.
|
||
*/
|
||
/*
|
||
| v0.11 extraction of guest messages (CH-14): a small model extracts, rules check, a larger model reviews risky
|
||
| results. Thresholds are starting values to be calibrated with representative messages (go-live condition).
|
||
*/
|
||
// Provider, key and models are each landlord's own (System › KI-Anbindung); endpoints are fixed in
|
||
// App\Communication\Extraction\AiProvider. Here only the technical limits.
|
||
'ai' => [
|
||
'anthropic_version' => env('FEWO_AI_ANTHROPIC_VERSION', '2026-10-21'),
|
||
'timeout' => (int) env('FEWO_AI_TIMEOUT', 40),
|
||
'prompt_version' => env('FEWO_AI_PROMPT_VERSION', 'v1'),
|
||
// Escalate to the review model when criticality × (1 − confidence) exceeds this value.
|
||
'escalate_above' => (float) env('FEWO_AI_ESCALATE_ABOVE', 0.2),
|
||
// Minimum confidence of the final result for taking a detail over automatically.
|
||
'min_confidence' => (float) env('FEWO_AI_MIN_CONFIDENCE', 0.85),
|
||
'per_run' => (int) env('FEWO_AI_PER_RUN', 10),
|
||
],
|
||
|
||
'mailbox' => [
|
||
'host' => env('FEWO_MAILBOX_HOST'),
|
||
'port' => (int) env('FEWO_MAILBOX_PORT', 993),
|
||
'encryption' => env('FEWO_MAILBOX_ENCRYPTION', 'ssl'),
|
||
'username' => env('FEWO_MAILBOX_USERNAME'),
|
||
'password' => env('FEWO_MAILBOX_PASSWORD'),
|
||
'folder' => env('FEWO_MAILBOX_FOLDER', 'INBOX'),
|
||
'lookback_days' => (int) env('FEWO_MAILBOX_LOOKBACK_DAYS', 3),
|
||
'stale_after_minutes' => (int) env('FEWO_MAILBOX_STALE_AFTER_MINUTES', 15),
|
||
],
|
||
|
||
/*
|
||
| Fallback trigger for the task scheduler (e.g. from n8n every minute) if the hosting's cron jobs
|
||
| are not available or not frequent enough: GET /automation/scheduler?token=… . Empty = disabled.
|
||
*/
|
||
'scheduler_token' => env('FEWO_SCHEDULER_TOKEN'),
|
||
|
||
/*
|
||
| Redirect plain-HTTP requests to HTTPS (App\Http\Middleware\ForceHttps). On by default everywhere except
|
||
| local development and tests.
|
||
*/
|
||
'force_https' => (bool) env('FEWO_FORCE_HTTPS', ! in_array(env('APP_ENV', 'production'), ['local', 'testing'], true)),
|
||
|
||
/*
|
||
| Optional external automation (e.g. a browser bot on a private server) that carries out
|
||
| manual blocking tasks. Tasks are POSTed signed with HMAC-SHA256 of the body.
|
||
*/
|
||
'automation' => [
|
||
'webhook_url' => env('FEWO_AUTOMATION_WEBHOOK_URL'),
|
||
'secret' => env('FEWO_AUTOMATION_SECRET'),
|
||
],
|
||
|
||
];
|