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:
Codex Agent
2025-11-10 16:23:09 +01:00
parent ba9e64dfcb
commit 447a90a742
123 changed files with 6398 additions and 153 deletions

28
config/photobooth.php Normal file
View 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'))
))),
],
];