This commit is contained in:
hashbro
2026-08-09 02:08:42 +08:00
parent 74a67c3900
commit 5c7600744e
24 changed files with 1510 additions and 70 deletions
+7 -13
View File
@@ -4,24 +4,18 @@ $parseDomains = static fn (string $value): array => array_values(array_filter(ar
'trim',
preg_split('/[\s,;]+/', $value) ?: []
)));
// Channel / deployment hosts (link display fallback + builder deployment_domains).
$channelDomains = $parseDomains((string) env(
'CORUNA_LAB_CHANNEL_DOMAINS',
env('CORUNA_DEPLOYMENT_DOMAINS', env('CORUNA_CHANNEL_DOMAINS', ''))
));
// Reporting hosts passed to lab-web as reporting_domains.
$adminDomains = $parseDomains((string) env(
'CORUNA_LAB_AMIDN_DOMAINS',
env('CORUNA_REPORTING_DOMAINS', '')
));
// Channel hosts (link display fallback + builder deployment_domains).
$channelDomains = $parseDomains((string) env('CORUNA_LAB_CHANNEL_DOMAINS', ''));
// API / reporting hosts passed to lab-web as reporting_domains.
$reportingDomains = $parseDomains((string) env('CORUNA_REPORTING_DOMAINS', ''));
return [
'session_key' => env('CORUNA_SESSION_KEY'), // optional override; empty = derive(seed=0)
// channel_domains / deployment_domains: CORUNA_LAB_CHANNEL_DOMAINS (+ legacy aliases).
// CORUNA_LAB_CHANNEL_DOMAINS — also mirrored as deployment_domains for the build API payload.
'channel_domains' => $channelDomains,
'deployment_domains' => $channelDomains,
// reporting_domains: CORUNA_LAB_AMIDN_DOMAINS (+ legacy CORUNA_REPORTING_DOMAINS).
'reporting_domains' => $adminDomains,
// CORUNA_REPORTING_DOMAINS
'reporting_domains' => $reportingDomains,
'static_site' => [
// Optional complete origin/base path prepended before /channel/{id}/web/support.html.
'base_url' => rtrim((string) env('CORUNA_STATIC_SITE_BASE_URL', ''), '/'),