2011-06-01 12:13:39 +02:00
|
|
|
<?php
|
2013-12-03 16:18:22 +01:00
|
|
|
|
2017-01-21 23:07:20 +01:00
|
|
|
// To change settings create a config.php
|
|
|
|
|
|
|
|
return [
|
|
|
|
// MySQL-Connection Settings
|
2017-08-31 12:25:06 +02:00
|
|
|
'database' => [
|
2018-01-14 01:48:50 +01:00
|
|
|
'host' => env('MYSQL_HOST', (env('CI', false) ? 'mariadb' : 'localhost')),
|
|
|
|
'database' => env('MYSQL_DATABASE', 'engelsystem'),
|
|
|
|
'username' => env('MYSQL_USER', 'root'),
|
|
|
|
'password' => env('MYSQL_PASSWORD', ''),
|
2017-01-21 23:07:20 +01:00
|
|
|
],
|
|
|
|
|
|
|
|
// For accessing stats
|
2017-08-31 12:25:06 +02:00
|
|
|
'api_key' => '',
|
2017-01-21 23:07:20 +01:00
|
|
|
|
|
|
|
// Enable maintenance mode (show a static page)
|
2018-08-12 23:44:46 +02:00
|
|
|
'maintenance' => (bool)env('MAINTENANCE', false),
|
2017-01-21 23:07:20 +01:00
|
|
|
|
2018-10-05 15:35:14 +02:00
|
|
|
// Application name (not the event name!)
|
|
|
|
'app_name' => env('APP_NAME', 'Engelsystem'),
|
|
|
|
|
2017-01-21 23:07:20 +01:00
|
|
|
// Set to development to enable debugging messages
|
2018-08-12 23:44:46 +02:00
|
|
|
'environment' => env('ENVIRONMENT', 'production'),
|
2017-01-21 23:07:20 +01:00
|
|
|
|
2018-10-24 14:54:37 +02:00
|
|
|
// Footer links
|
|
|
|
'footer_items' => [
|
|
|
|
// URL to the angel faq and job description
|
|
|
|
'FAQ' => env('FAQ_URL', 'https://events.ccc.de/congress/2013/wiki/Static:Volunteers'),
|
2017-01-21 23:07:20 +01:00
|
|
|
|
2018-10-24 14:54:37 +02:00
|
|
|
// Contact email address, linked on every page
|
|
|
|
'Contact' => env('CONTACT_EMAIL', 'mailto:ticket@c3heaven.de'),
|
|
|
|
],
|
2017-01-21 23:07:20 +01:00
|
|
|
|
2018-09-05 13:40:03 +02:00
|
|
|
// Email config
|
|
|
|
'email' => [
|
|
|
|
// Can be mail, smtp, sendmail or log
|
2018-10-24 14:05:50 +02:00
|
|
|
'driver' => env('MAIL_DRIVER', 'mail'),
|
2018-09-05 13:40:03 +02:00
|
|
|
'from' => [
|
|
|
|
// From address of all emails
|
|
|
|
'address' => env('MAIL_FROM_ADDRESS', 'noreply@engelsystem.de'),
|
2018-10-05 15:35:14 +02:00
|
|
|
'name' => env('MAIL_FROM_NAME', env('APP_NAME', 'Engelsystem'))
|
2018-09-05 13:40:03 +02:00
|
|
|
],
|
|
|
|
|
|
|
|
'host' => env('MAIL_HOST', 'localhost'),
|
|
|
|
'port' => env('MAIL_PORT', 587),
|
|
|
|
// Transport encryption like tls
|
|
|
|
'encryption' => env('MAIL_ENCRYPTION', null),
|
|
|
|
'username' => env('MAIL_USERNAME'),
|
|
|
|
'password' => env('MAIL_PASSWORD'),
|
2018-09-26 21:28:49 +02:00
|
|
|
'sendmail' => env('MAIL_SENDMAIL', '/usr/sbin/sendmail -bs'),
|
2018-09-05 13:40:03 +02:00
|
|
|
],
|
2017-07-17 22:17:58 +02:00
|
|
|
|
2017-07-20 01:14:28 +02:00
|
|
|
// Default theme, 1=style1.css
|
2018-08-12 23:44:46 +02:00
|
|
|
'theme' => env('THEME', 1),
|
2017-01-21 23:07:20 +01:00
|
|
|
|
2017-07-20 01:14:28 +02:00
|
|
|
// Available themes
|
2017-08-31 12:25:06 +02:00
|
|
|
'available_themes' => [
|
2018-11-11 20:50:25 +01:00
|
|
|
'7' => 'Engelsystem 35c3 dark (2018)',
|
2017-11-30 21:03:51 +01:00
|
|
|
'6' => 'Engelsystem 34c3 dark (2017)',
|
|
|
|
'5' => 'Engelsystem 34c3 light (2017)',
|
2017-07-20 01:14:28 +02:00
|
|
|
'4' => 'Engelsystem 33c3 (2016)',
|
|
|
|
'3' => 'Engelsystem 32c3 (2015)',
|
|
|
|
'2' => 'Engelsystem cccamp15',
|
|
|
|
'0' => 'Engelsystem light',
|
2018-10-19 02:38:07 +02:00
|
|
|
'1' => 'Engelsystem dark',
|
2017-07-20 01:14:28 +02:00
|
|
|
],
|
|
|
|
|
2018-03-31 05:19:49 +02:00
|
|
|
// Rewrite URLs with mod_rewrite
|
|
|
|
'rewrite_urls' => true,
|
|
|
|
|
2017-01-21 23:07:20 +01:00
|
|
|
// Number of News shown on one site
|
2017-08-31 12:25:06 +02:00
|
|
|
'display_news' => 6,
|
|
|
|
|
2017-09-20 12:18:08 +02:00
|
|
|
// Users are able to sign up
|
2018-08-12 23:44:46 +02:00
|
|
|
'registration_enabled' => (bool)env('REGISTRATION_ENABLED', true),
|
2017-09-20 12:18:08 +02:00
|
|
|
|
2017-08-31 12:25:06 +02:00
|
|
|
// Only arrived angels can sign up for shifts
|
|
|
|
'signup_requires_arrival' => false,
|
2017-01-21 23:07:20 +01:00
|
|
|
|
2018-09-06 16:04:41 +02:00
|
|
|
// Number of hours that an angel has to sign out own shifts
|
2017-08-31 12:25:06 +02:00
|
|
|
'last_unsubscribe' => 3,
|
2017-01-21 23:07:20 +01:00
|
|
|
|
2018-09-06 16:04:41 +02:00
|
|
|
// Define the algorithm to use for `crypt()` of passwords
|
|
|
|
// If the user uses an old algorithm the password will be converted to the new format
|
2017-01-21 23:07:20 +01:00
|
|
|
// MD5 '$1'
|
|
|
|
// Blowfish '$2y$13'
|
|
|
|
// SHA-256 '$5$rounds=5000'
|
|
|
|
// SHA-512 '$6$rounds=5000'
|
2017-08-31 12:25:06 +02:00
|
|
|
'crypt_alg' => '$6$rounds=5000',
|
2017-01-21 23:07:20 +01:00
|
|
|
|
2018-09-26 21:28:49 +02:00
|
|
|
// The minimum length for passwords
|
2017-01-21 23:07:20 +01:00
|
|
|
'min_password_length' => 8,
|
|
|
|
|
2018-09-06 16:04:41 +02:00
|
|
|
// Enables the T-Shirt configuration on signup and profile
|
2017-01-21 23:07:20 +01:00
|
|
|
'enable_tshirt_size' => true,
|
|
|
|
|
|
|
|
// Number of shifts to freeload until angel is locked for shift signup.
|
|
|
|
'max_freeloadable_shifts' => 2,
|
|
|
|
|
2018-09-06 16:04:41 +02:00
|
|
|
// Local timezone
|
2018-08-12 23:44:46 +02:00
|
|
|
'timezone' => env('TIMEZONE', 'Europe/Berlin'),
|
2017-01-21 23:07:20 +01:00
|
|
|
|
2017-03-02 08:11:52 +01:00
|
|
|
// Multiply 'night shifts' and freeloaded shifts (start or end between 2 and 6 exclusive) by 2
|
2018-09-17 12:33:15 +02:00
|
|
|
'night_shifts' => [
|
|
|
|
'enabled' => true, // Disable to weigh every shift the same
|
|
|
|
'start' => 2,
|
|
|
|
'end' => 6,
|
|
|
|
'multiplier' => 2,
|
|
|
|
],
|
2017-01-21 23:07:20 +01:00
|
|
|
|
2017-03-02 08:11:52 +01:00
|
|
|
// Voucher calculation
|
2017-01-21 23:07:20 +01:00
|
|
|
'voucher_settings' => [
|
2017-12-26 14:17:22 +01:00
|
|
|
'initial_vouchers' => 0,
|
2017-01-21 23:07:20 +01:00
|
|
|
'shifts_per_voucher' => 1,
|
|
|
|
],
|
|
|
|
|
|
|
|
// Available locales in /locale/
|
|
|
|
'locales' => [
|
|
|
|
'de_DE.UTF-8' => 'Deutsch',
|
|
|
|
'en_US.UTF-8' => 'English',
|
|
|
|
],
|
|
|
|
|
2018-09-06 16:04:41 +02:00
|
|
|
// The default locale to use
|
2018-09-26 21:28:49 +02:00
|
|
|
'default_locale' => env('DEFAULT_LOCALE', 'en_US.UTF-8'),
|
2017-01-21 23:07:20 +01:00
|
|
|
|
|
|
|
// Available T-Shirt sizes, set value to null if not available
|
2018-09-06 16:04:41 +02:00
|
|
|
'tshirt_sizes' => [
|
2017-01-21 23:07:20 +01:00
|
|
|
'S' => 'S',
|
2017-12-28 15:08:48 +01:00
|
|
|
'S-G' => 'S Girl',
|
2017-01-21 23:07:20 +01:00
|
|
|
'M' => 'M',
|
2017-12-28 15:08:48 +01:00
|
|
|
'M-G' => 'M Girl',
|
2017-01-21 23:07:20 +01:00
|
|
|
'L' => 'L',
|
2017-12-28 15:08:48 +01:00
|
|
|
'L-G' => 'L Girl',
|
2017-01-21 23:07:20 +01:00
|
|
|
'XL' => 'XL',
|
2017-12-28 15:08:48 +01:00
|
|
|
'XL-G' => 'XL Girl',
|
2017-01-21 23:07:20 +01:00
|
|
|
'2XL' => '2XL',
|
|
|
|
'3XL' => '3XL',
|
2018-10-19 02:38:07 +02:00
|
|
|
'4XL' => '4XL',
|
2017-01-21 23:07:20 +01:00
|
|
|
],
|
2018-08-13 16:30:27 +02:00
|
|
|
|
2018-09-15 17:24:59 +02:00
|
|
|
// Session config
|
|
|
|
'session' => [
|
|
|
|
// Supported: pdo or native
|
|
|
|
'driver' => env('SESSION_DRIVER', 'pdo'),
|
|
|
|
|
|
|
|
// Cookie name
|
|
|
|
'name' => 'session',
|
|
|
|
],
|
2018-09-30 19:31:14 +02:00
|
|
|
|
2018-08-13 16:30:27 +02:00
|
|
|
// IP addresses of reverse proxies that are trusted, can be an array or a comma separated list
|
2018-09-26 21:28:49 +02:00
|
|
|
'trusted_proxies' => env('TRUSTED_PROXIES', ['127.0.0.0/8', '::ffff:127.0.0.0/8', '::1/128']),
|
2018-10-27 12:11:37 +02:00
|
|
|
|
|
|
|
// Add additional headers
|
|
|
|
'add_headers' => (bool)env('ADD_HEADERS', true),
|
|
|
|
'headers' => [
|
|
|
|
'X-Content-Type-Options' => 'nosniff',
|
|
|
|
'X-Frame-Options' => 'sameorigin',
|
|
|
|
'Referrer-Policy' => 'strict-origin-when-cross-origin',
|
|
|
|
'Content-Security-Policy' => 'default-src \'self\' \'unsafe-inline\' \'unsafe-eval\'',
|
|
|
|
'X-XSS-Protection' => '1; mode=block',
|
|
|
|
'Feature-Policy' => 'autoplay \'none\'',
|
|
|
|
//'Strict-Transport-Security' => 'max-age=7776000',
|
|
|
|
//'Expect-CT' => 'max-age=7776000,enforce,report-uri="[uri]"',
|
|
|
|
],
|
2016-10-01 10:48:19 +02:00
|
|
|
];
|