From b9e25bc5cb3422b124216a7b8423dd40ac778ada Mon Sep 17 00:00:00 2001 From: Gunnar Velle Date: Mon, 17 Aug 2026 14:09:31 +0200 Subject: [PATCH] Add support for cdn-url for hub. Makes it possible to override uploads-url for content types. --- sourcecode/hub/.env.example | 1 + sourcecode/hub/config/filesystems.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/sourcecode/hub/.env.example b/sourcecode/hub/.env.example index 772612a639..28a3104316 100644 --- a/sourcecode/hub/.env.example +++ b/sourcecode/hub/.env.example @@ -49,6 +49,7 @@ AWS_SECRET_ACCESS_KEY= AWS_DEFAULT_REGION=us-east-1 AWS_BUCKET= AWS_USE_PATH_STYLE_ENDPOINT=false +CDN_WITH_PREFIX= SCOUT_DRIVER=meilisearch MEILISEARCH_HOST=http://meilisearch:7700 diff --git a/sourcecode/hub/config/filesystems.php b/sourcecode/hub/config/filesystems.php index a9933317ad..259bdde6f6 100644 --- a/sourcecode/hub/config/filesystems.php +++ b/sourcecode/hub/config/filesystems.php @@ -52,7 +52,7 @@ 'secret' => env('AWS_SECRET_ACCESS_KEY'), 'region' => env('AWS_DEFAULT_REGION'), 'bucket' => env('AWS_BUCKET'), - 'url' => env('AWS_URL'), + 'url' => env('AWS_URL', env('CDN_WITH_PREFIX')), 'endpoint' => env('AWS_ENDPOINT'), 'use_path_style_endpoint' => env('AWS_USE_PATH_STYLE_ENDPOINT', false), 'throw' => true,