diff --git a/app/Helpers/ConfigHelper.php b/app/Helpers/ConfigHelper.php index 7c04665..e5a7728 100644 --- a/app/Helpers/ConfigHelper.php +++ b/app/Helpers/ConfigHelper.php @@ -8,6 +8,7 @@ use App\AlbumSources\LocalFilesystemSource; use App\AlbumSources\OpenStackSource; use App\AlbumSources\RackspaceSource; use App\Configuration; +use App\Storage; class ConfigHelper { @@ -102,6 +103,7 @@ class ConfigHelper 'allow_photo_comments' => false, 'allow_photo_comments_anonymous' => true, 'allow_self_registration' => true, + 'analysis_queue_storage_location' => Storage::where('is_default', true)->first()->id, 'analytics_code' => '', 'app_name' => trans('global.app_name'), 'date_format' => $this->allowedDateFormats()[0], diff --git a/resources/lang/en/admin.php b/resources/lang/en/admin.php index 220b1f8..ea58831 100644 --- a/resources/lang/en/admin.php +++ b/resources/lang/en/admin.php @@ -260,6 +260,10 @@ return [ 'albums_menu_heading' => 'Albums Navigation Menu', 'albums_menu_number_items' => 'Number of albums to display:', 'albums_menu_parents_only' => 'Only show top-level albums', + 'analysis_queue_storage' => 'Analysis Queue Storage Driver', + 'analysis_queue_storage_intro' => 'The analysis queue is a temporary storage location for images waiting to be analysed after an upload or a meta-data refresh.', + 'analysis_queue_storage_intro_2' => 'Select the storage location to use for the analysis queue. If you are using RabbitMQ, it is recommended this is a cloud storage location.', + 'analysis_queue_storage_warning' => 'Using a cloud storage location may incur additional transfer costs. Consult your storage provider to check these costs.', 'analytics_cookie_link_1' => 'Information about the EU Cookie Law directive', 'analytics_cookie_link_2' => 'Cookie Consent by Insites', 'analytics_cookie_warning_1' => 'If you are based in Europe and you enable visitor tracking, you will need to comply with the EU Cookie Law. The easiest way to do so is using a script like Cookie Consent by Insites.', diff --git a/resources/views/themes/base/admin/settings.blade.php b/resources/views/themes/base/admin/settings.blade.php index e65f4c8..964ae3a 100644 --- a/resources/views/themes/base/admin/settings.blade.php +++ b/resources/views/themes/base/admin/settings.blade.php @@ -129,70 +129,95 @@
@lang('admin.settings.image_processing_queue_intro_3')
@lang('admin.settings.analysis_queue_storage_warning')
+