added a help system, replaced the words "tenant" and "Pwa" with better alternatives. corrected and implemented cron jobs. prepared going live on a coolify-powered system.
This commit is contained in:
28
config/photobooth.php
Normal file
28
config/photobooth.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'control_service' => [
|
||||
'base_url' => env('PHOTOBOOTH_CONTROL_BASE_URL'),
|
||||
'token' => env('PHOTOBOOTH_CONTROL_TOKEN'),
|
||||
'timeout' => (int) env('PHOTOBOOTH_CONTROL_TIMEOUT', 5),
|
||||
],
|
||||
'ftp' => [
|
||||
'host' => env('PHOTOBOOTH_FTP_HOST'),
|
||||
'port' => (int) env('PHOTOBOOTH_FTP_PORT', 2121),
|
||||
],
|
||||
'credentials' => [
|
||||
'username_prefix' => env('PHOTOBOOTH_USERNAME_PREFIX', 'pb'),
|
||||
'username_length' => (int) env('PHOTOBOOTH_USERNAME_LENGTH', 8),
|
||||
'password_length' => (int) env('PHOTOBOOTH_PASSWORD_LENGTH', 8),
|
||||
],
|
||||
'rate_limit_per_minute' => (int) env('PHOTOBOOTH_RATE_LIMIT_PER_MINUTE', 20),
|
||||
'expiry_grace_days' => (int) env('PHOTOBOOTH_EXPIRY_GRACE_DAYS', 1),
|
||||
'import' => [
|
||||
'disk' => env('PHOTOBOOTH_IMPORT_DISK', 'photobooth'),
|
||||
'max_files_per_run' => (int) env('PHOTOBOOTH_IMPORT_MAX_FILES', 50),
|
||||
'allowed_extensions' => array_values(array_filter(array_map(
|
||||
fn ($ext) => strtolower(trim($ext)),
|
||||
explode(',', env('PHOTOBOOTH_ALLOWED_EXTENSIONS', 'jpg,jpeg,png,webp'))
|
||||
))),
|
||||
],
|
||||
];
|
||||
Reference in New Issue
Block a user