add autodeploy and add basic auth for file uploader
Some checks failed
Deploy back2 / deploy (push) Failing after 46s

This commit is contained in:
2026-04-02 19:42:04 +03:00
parent ad4a3367c3
commit b36cf07635
10 changed files with 244 additions and 56 deletions

View File

@@ -5,5 +5,14 @@ return [
'disk' => env('FILE_LINKS_DISK', 'local'),
'directory' => env('FILE_LINKS_DIRECTORY', 'temporary-links'),
'max_size_kb' => (int) env('FILE_LINKS_MAX_SIZE_KB', 10240),
'upload_basic_auth_users' => array_values(array_filter([
[
'username' => env('FILE_LINKS_UPLOAD_USER_1'),
'password' => env('FILE_LINKS_UPLOAD_PASSWORD_1'),
],
[
'username' => env('FILE_LINKS_UPLOAD_USER_2'),
'password' => env('FILE_LINKS_UPLOAD_PASSWORD_2'),
],
], static fn (array $user): bool => filled($user['username']) && filled($user['password']))),
];