Wire admin studio SSR and search infrastructure

This commit is contained in:
2026-05-01 11:46:06 +02:00
parent 257b0dbef6
commit 18cea8b0f0
329 changed files with 197465 additions and 2741 deletions

View File

@@ -1,5 +1,24 @@
<?php
$resolveRedisUrl = static function (?string $url, ?string $password): ?string {
$normalizedUrl = is_string($url) ? trim($url) : '';
if ($normalizedUrl === '') {
return null;
}
$normalizedPassword = is_string($password) ? trim($password) : '';
if ($normalizedPassword === '') {
return $normalizedUrl;
}
return preg_match('#^[a-z][a-z0-9+.-]*://[^@]+@#i', $normalizedUrl) === 1
? $normalizedUrl
: null;
};
$sharedRedisPassword = env('REDIS_PASSWORD');
$reverbRedisUrl = $resolveRedisUrl(env('REVERB_REDIS_URL', env('REDIS_URL')), $sharedRedisPassword);
return [
/*
@@ -41,11 +60,11 @@ return [
'enabled' => env('REVERB_SCALING_ENABLED', false),
'channel' => env('REVERB_SCALING_CHANNEL', 'reverb'),
'server' => [
'url' => env('REDIS_URL'),
'url' => $reverbRedisUrl,
'host' => env('REDIS_HOST', '127.0.0.1'),
'port' => env('REDIS_PORT', '6379'),
'username' => env('REDIS_USERNAME'),
'password' => env('REDIS_PASSWORD'),
'password' => $sharedRedisPassword,
'database' => env('REDIS_DB', '0'),
'timeout' => env('REDIS_TIMEOUT', 60),
],