diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/config.default.php | 47 |
1 files changed, 22 insertions, 25 deletions
diff --git a/config/config.default.php b/config/config.default.php index e085d307..079b7e63 100644 --- a/config/config.default.php +++ b/config/config.default.php @@ -15,16 +15,16 @@ return [ 'api_key' => '', // Enable maintenance mode (show a static page) - 'maintenance' => false, + 'maintenance' => (bool)env('MAINTENANCE', false), // Set to development to enable debugging messages - 'environment' => 'production', + 'environment' => env('ENVIRONMENT', 'production'), // URL to the angel faq and job description - 'faq_url' => 'https://events.ccc.de/congress/2013/wiki/Static:Volunteers', + 'faq_url' => env('FAQ_URL', 'https://events.ccc.de/congress/2013/wiki/Static:Volunteers'), // Contact email address, linked on every page - 'contact_email' => 'mailto:ticket@c3heaven.de', + 'contact_email' => env('CONTACT_EMAIL', 'mailto:ticket@c3heaven.de'), // Email config 'email' => [ @@ -42,11 +42,11 @@ return [ 'encryption' => env('MAIL_ENCRYPTION', null), 'username' => env('MAIL_USERNAME'), 'password' => env('MAIL_PASSWORD'), - 'sendmail' => '/usr/sbin/sendmail -bs', + 'sendmail' => env('MAIL_SENDMAIL', '/usr/sbin/sendmail -bs'), ], // Default theme, 1=style1.css - 'theme' => 1, + 'theme' => env('THEME', 1), // Available themes 'available_themes' => [ @@ -59,11 +59,14 @@ return [ '1' => 'Engelsystem dark' ], + // Rewrite URLs with mod_rewrite + 'rewrite_urls' => true, + // Number of News shown on one site 'display_news' => 6, // Users are able to sign up - 'registration_enabled' => true, + 'registration_enabled' => (bool)env('REGISTRATION_ENABLED', true), // Only arrived angels can sign up for shifts 'signup_requires_arrival' => false, @@ -79,6 +82,7 @@ return [ // SHA-512 '$6$rounds=5000' 'crypt_alg' => '$6$rounds=5000', + // The minimum length for passwords 'min_password_length' => 8, // Enables the T-Shirt configuration on signup and profile @@ -88,25 +92,15 @@ return [ 'max_freeloadable_shifts' => 2, // Local timezone - 'timezone' => 'Europe/Berlin', - - // Weigh every shift the same - //'shift_sum_formula' => 'SUM(`end` - `start`)', + 'timezone' => env('TIMEZONE', 'Europe/Berlin'), // Multiply 'night shifts' and freeloaded shifts (start or end between 2 and 6 exclusive) by 2 - 'shift_sum_formula' => ' - SUM( - (1 + - ( - (HOUR(FROM_UNIXTIME(`Shifts`.`end`)) > 2 AND HOUR(FROM_UNIXTIME(`Shifts`.`end`)) < 6) - OR (HOUR(FROM_UNIXTIME(`Shifts`.`start`)) > 2 AND HOUR(FROM_UNIXTIME(`Shifts`.`start`)) < 6) - OR (HOUR(FROM_UNIXTIME(`Shifts`.`start`)) <= 2 AND HOUR(FROM_UNIXTIME(`Shifts`.`end`)) >= 6) - ) - ) - * (`Shifts`.`end` - `Shifts`.`start`) - * (1 - 3 * `ShiftEntry`.`freeloaded`) - ) - ', + 'night_shifts' => [ + 'enabled' => true, // Disable to weigh every shift the same + 'start' => 2, + 'end' => 6, + 'multiplier' => 2, + ], // Voucher calculation 'voucher_settings' => [ @@ -121,7 +115,7 @@ return [ ], // The default locale to use - 'default_locale' => 'en_US.UTF-8', + 'default_locale' => env('DEFAULT_LOCALE', 'en_US.UTF-8'), // Available T-Shirt sizes, set value to null if not available 'tshirt_sizes' => [ @@ -146,4 +140,7 @@ return [ // Cookie name 'name' => 'session', ], + + // IP addresses of reverse proxies that are trusted, can be an array or a comma separated list + 'trusted_proxies' => env('TRUSTED_PROXIES', ['127.0.0.0/8', '::ffff:127.0.0.0/8', '::1/128']), ]; |