update 20.10.2025
This commit is contained in:
parent
8c11130b5d
commit
a939cd51ef
616 changed files with 84821 additions and 4121 deletions
|
|
@ -185,12 +185,10 @@ return [
|
|||
* Package Service Providers...
|
||||
*/
|
||||
Laravel\Tinker\TinkerServiceProvider::class,
|
||||
|
||||
/*
|
||||
* DHL Package Service Provider...
|
||||
*/
|
||||
Acme\Dhl\DhlServiceProvider::class,
|
||||
|
||||
/*
|
||||
* Application Service Providers...
|
||||
*/
|
||||
|
|
@ -199,7 +197,7 @@ return [
|
|||
// App\Providers\BroadcastServiceProvider::class,
|
||||
App\Providers\EventServiceProvider::class,
|
||||
App\Providers\HorizonServiceProvider::class,
|
||||
App\Providers\DomainServiceProvider::class,
|
||||
//App\Providers\DomainServiceProvider::class,
|
||||
App\Providers\RouteServiceProvider::class,
|
||||
Jenssegers\Date\DateServiceProvider::class,
|
||||
Maatwebsite\Excel\ExcelServiceProvider::class,
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@ return [
|
|||
|--------------------------------------------------------------------------
|
||||
*/
|
||||
'base_url' => env('DHL_BASE_URL', 'https://api-eu.dhl.com'),
|
||||
'sandbox_url' => env('DHL_SANDBOX_URL', 'https://api-sandbox.dhl.com'),
|
||||
'api_key' => env('DHL_API_KEY'),
|
||||
'username' => env('DHL_USERNAME'),
|
||||
'password' => env('DHL_PASSWORD'),
|
||||
|
|
@ -83,6 +84,14 @@ return [
|
|||
'V07PAK' => env('DHL_ACCOUNT_NUMBER_V07PAK', '63144073550701'), // DHL Retoure Online
|
||||
],
|
||||
|
||||
'dimensions' => [
|
||||
'default' => ['length' => 120, 'width' => 60, 'height' => 60,],
|
||||
'V01PAK' => ['length' => 120, 'width' => 60, 'height' => 60,], // DHL Paket National
|
||||
'V62WP' => ['length' => 35, 'width' => 25, 'height' => 8,], // Warenpost National
|
||||
'V53PAK' => ['length' => 120, 'width' => 60, 'height' => 60,], // DHL Paket International
|
||||
'V07PAK' => ['length' => 120, 'width' => 60, 'height' => 60,], // DHL Retoure Online
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Logging Settings
|
||||
|
|
@ -104,5 +113,11 @@ return [
|
|||
'api_secret' => env('DHL_API_SECRET'),
|
||||
'sandbox' => env('DHL_SANDBOX', true),
|
||||
'test_mode' => env('DHL_TEST_MODE', true),
|
||||
]
|
||||
],
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Default Settings
|
||||
|--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
];
|
||||
|
|
|
|||
|
|
@ -39,6 +39,14 @@ return [
|
|||
'path' => storage_path('logs/order_controller.log'),
|
||||
'level' => 'debug',
|
||||
],
|
||||
'abo_order' => [
|
||||
'driver' => 'single',
|
||||
'path' => storage_path('logs/abo_order.log'),
|
||||
],
|
||||
'domain' => [
|
||||
'driver' => 'single',
|
||||
'path' => storage_path('logs/domain.log'),
|
||||
],
|
||||
'payone' => [
|
||||
'driver' => 'single',
|
||||
'path' => storage_path('logs/payone.log'),
|
||||
|
|
@ -55,6 +63,12 @@ return [
|
|||
'driver' => 'single',
|
||||
'path' => storage_path('logs/cron.log'),
|
||||
],
|
||||
'dhl' => [
|
||||
'driver' => 'daily',
|
||||
'path' => storage_path('logs/dhl.log'),
|
||||
'level' => 'debug',
|
||||
'days' => 30,
|
||||
],
|
||||
'stack' => [
|
||||
'driver' => 'stack',
|
||||
'channels' => ['single'],
|
||||
|
|
|
|||
|
|
@ -153,7 +153,7 @@ return [
|
|||
|
|
||||
*/
|
||||
|
||||
'domain' => env('SESSION_DOMAIN', null),
|
||||
'domain' => env('SESSION_DOMAIN', '.mivita.test'),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
|
|||
129
config/subdomain.php
Normal file
129
config/subdomain.php
Normal file
|
|
@ -0,0 +1,129 @@
|
|||
<?php
|
||||
|
||||
return [
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Subdomain Optimization Configuration (GPT-5 v3)
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Optimierte Konfiguration für minimales aber leistungsstarkes
|
||||
| Domain- und Session-Management.
|
||||
|
|
||||
*/
|
||||
|
||||
'cache' => [
|
||||
// Request-Level Domain-Parsing Cache aktivieren
|
||||
'enabled' => env('DOMAIN_CACHE_ENABLED', true),
|
||||
|
||||
// Max. Cache-Entries pro Request (Memory-Leak-Protection)
|
||||
'max_entries' => env('DOMAIN_CACHE_MAX_ENTRIES', 50),
|
||||
|
||||
// Cache-Statistiken in Debug-Mode anzeigen
|
||||
'show_stats' => env('DOMAIN_CACHE_STATS', false),
|
||||
],
|
||||
|
||||
'cookie' => [
|
||||
// Cookie-Name für UserShop-Persistierung
|
||||
'name' => env('MIVITA_USERSHOP_COOKIE', 'mivita_shop'),
|
||||
|
||||
// Cookie-TTL in Tagen
|
||||
'ttl_days' => env('MIVITA_USERSHOP_COOKIE_TTL_DAYS', 30),
|
||||
|
||||
// Secure-Flag (null = auto-detect basierend auf HTTPS)
|
||||
'secure' => env('MIVITA_COOKIE_SECURE', null),
|
||||
|
||||
// SameSite-Policy für CSRF-Protection (lax, strict, none)
|
||||
'same_site' => env('MIVITA_COOKIE_SAMESITE', 'lax'),
|
||||
],
|
||||
|
||||
'session' => [
|
||||
// Kompakte Session-Keys verwenden (shop.* statt ctx.user_shop.*)
|
||||
'compact_keys' => env('MIVITA_SESSION_COMPACT', true),
|
||||
|
||||
// Legacy-Session-Keys für Backward-Compatibility
|
||||
'legacy_support' => env('MIVITA_SESSION_LEGACY', true),
|
||||
|
||||
// Session automatisch nach Synchronisation speichern
|
||||
'auto_save' => env('MIVITA_SESSION_AUTO_SAVE', true),
|
||||
],
|
||||
|
||||
'debug' => [
|
||||
// Domain-Switches und Session-Changes loggen
|
||||
'log_domain_switches' => env('MIVITA_DEBUG_DOMAIN_SWITCHES', false), // Debug-Logging wieder deaktiviert
|
||||
|
||||
// Performance-Metriken loggen
|
||||
'log_performance' => env('MIVITA_DEBUG_PERFORMANCE', false),
|
||||
|
||||
// Memory-Usage-Tracking aktivieren
|
||||
'track_memory' => env('MIVITA_DEBUG_MEMORY', false),
|
||||
|
||||
// Cache-Hit-Statistics loggen
|
||||
'log_cache_stats' => env('MIVITA_DEBUG_CACHE_STATS', false),
|
||||
],
|
||||
|
||||
'performance' => [
|
||||
// Request-Level UserShop-Caching aktivieren
|
||||
'cache_user_shops' => env('MIVITA_CACHE_USER_SHOPS', true),
|
||||
|
||||
// Skip-Logic für Performance-Optimierung
|
||||
'skip_static_assets' => env('MIVITA_SKIP_ASSETS', true),
|
||||
|
||||
// Memory-Monitoring für Production
|
||||
'memory_limit_mb' => env('MIVITA_MEMORY_LIMIT_MB', 50),
|
||||
|
||||
// Graceful Degradation bei Fehlern
|
||||
'graceful_degradation' => env('MIVITA_GRACEFUL_ERRORS', true),
|
||||
],
|
||||
|
||||
'security' => [
|
||||
// Cookie-Values sanitizen (XSS-Protection)
|
||||
'sanitize_cookies' => env('MIVITA_SANITIZE_COOKIES', true),
|
||||
|
||||
// UserShop-Slug Format-Validierung
|
||||
'validate_slug_format' => env('MIVITA_VALIDATE_SLUGS', true),
|
||||
|
||||
// Max. Slug-Länge für Sicherheit
|
||||
'max_slug_length' => env('MIVITA_MAX_SLUG_LENGTH', 50),
|
||||
|
||||
// HttpOnly-Flag für Cookies (XSS-Protection)
|
||||
'http_only_cookies' => env('MIVITA_HTTP_ONLY_COOKIES', true),
|
||||
],
|
||||
|
||||
'fallback' => [
|
||||
// Bei Fehlern auf Hauptdomain fallback
|
||||
'use_main_domain' => env('MIVITA_FALLBACK_MAIN', true),
|
||||
|
||||
// Standard-UserShop für main-shop Domain
|
||||
'default_user_shop' => env('MIVITA_DEFAULT_SHOP', 'aloevera'),
|
||||
|
||||
// Fehler-Toleranz: Weiter bei UserShop-Loading-Fehlern
|
||||
'ignore_shop_errors' => env('MIVITA_IGNORE_SHOP_ERRORS', true),
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Environment-spezifische Defaults
|
||||
|--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
'environment_overrides' => [
|
||||
'local' => [
|
||||
'debug.log_domain_switches' => true,
|
||||
'debug.log_performance' => true,
|
||||
'cookie.secure' => false,
|
||||
],
|
||||
|
||||
'testing' => [
|
||||
'cache.enabled' => false,
|
||||
'debug.log_domain_switches' => false,
|
||||
'session.auto_save' => false,
|
||||
],
|
||||
|
||||
'production' => [
|
||||
'debug.log_domain_switches' => false,
|
||||
'debug.log_performance' => false,
|
||||
'cookie.secure' => true,
|
||||
'performance.graceful_degradation' => true,
|
||||
],
|
||||
],
|
||||
];
|
||||
Loading…
Add table
Add a link
Reference in a new issue