mivita/config/domains.php
2025-08-29 14:48:03 +02:00

66 lines
2.1 KiB
PHP

<?php
return [
/*
|--------------------------------------------------------------------------
| Domain-Konfiguration
|--------------------------------------------------------------------------
|
| Hier werden alle Domains und Subdomains der Anwendung zentral verwaltet.
| Der DomainService und der DomainResolver verwenden diese Konfiguration,
| um den richtigen Kontext für jede Anfrage zu bestimmen.
|
*/
'protocol' => env('APP_PROTOCOL', 'https://'),
'domains' => [
// Die Hauptdomain (z.B. mivita.care)
'main' => [
'host' => env('APP_DOMAIN', 'mivita') . env('APP_TLD_CARE', '.care'),
'type' => 'main',
],
// Die Shop-Domain (z.B. mivita.shop)
'shop' => [
'host' => env('APP_DOMAIN', 'mivita') . env('APP_TLD_SHOP', '.shop'),
'type' => 'main-shop',
'default_user_shop' => 'aloevera', // Fallback-Shop für diese Domain
],
// Das CRM (z.B. my.mivita.care)
'crm' => [
'host' => env('APP_PRE_URL_CRM', 'my.') . env('APP_DOMAIN', 'mivita') . env('APP_TLD_CARE', '.care'),
'type' => 'crm',
],
// Das Partner-Portal (z.B. in.mivita.care)
'portal' => [
'host' => env('APP_PRE_URL_PORTAL', 'in.') . env('APP_DOMAIN', 'mivita') . env('APP_TLD_CARE', '.care'),
'type' => 'portal',
],
// Die Checkout-Domain (z.B. checkout.mivita.care)
'checkout' => [
'host' => env('APP_URL_CHECKOUT', 'checkout.') . env('APP_DOMAIN', 'mivita') . env('APP_TLD_CARE', '.care'),
'type' => 'checkout',
],
// Die dynamischen User-Shops (z.B. {slug}.mivita.care)
'user-shop' => [
'host' => '{subdomain}.' . env('APP_DOMAIN', 'mivita') . env('APP_TLD_CARE', '.care'),
'type' => 'user-shop',
],
],
// Feste Subdomain-Präfixe, die reserviert sind
'reserved_subdomains' => [
'my',
'in',
'checkout',
'www',
'api',
'mail',
],
];