diff --git a/sourcecode/hub/.env.example b/sourcecode/hub/.env.example index 772612a63..28a310431 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 a9933317a..259bdde6f 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,