Change default config to better fit our needs

2022-03-24
Luca 3 years ago
parent d5640c4c69
commit 7f5c2da582

@ -2,6 +2,8 @@
// To change settings create a config.php // To change settings create a config.php
$default_app_name = 'Helfer*innen';
return [ return [
// MySQL-Connection Settings // MySQL-Connection Settings
'database' => [ 'database' => [
@ -18,7 +20,7 @@ return [
'maintenance' => (bool)env('MAINTENANCE', false), 'maintenance' => (bool)env('MAINTENANCE', false),
// Application name (not the event name!) // Application name (not the event name!)
'app_name' => env('APP_NAME', 'Engelsystem'), 'app_name' => env('APP_NAME', $default_app_name),
// Set to development to enable debugging messages // Set to development to enable debugging messages
'environment' => env('ENVIRONMENT', 'production'), 'environment' => env('ENVIRONMENT', 'production'),
@ -35,10 +37,10 @@ return [
// Footer links // Footer links
'footer_items' => [ 'footer_items' => [
// URL to the angel faq and job description // URL to the angel faq and job description
'FAQ' => env('FAQ_URL', '/faq'), 'FAQ' => env('FAQ_URL', 'https://kontakt-bamberg.de/mithelfen-2'),
// Contact email address, linked on every page // Contact email address, linked on every page
'Contact' => env('CONTACT_EMAIL', 'mailto:ticket@c3heaven.de'), 'Contact' => env('CONTACT_EMAIL', 'mailto:helfen@kontakt-bamberg.de'),
], ],
// Text displayed on the FAQ page, rendered as markdown // Text displayed on the FAQ page, rendered as markdown
@ -54,7 +56,7 @@ return [
'from' => [ 'from' => [
// From address of all emails // From address of all emails
'address' => env('MAIL_FROM_ADDRESS', 'noreply@example.com'), 'address' => env('MAIL_FROM_ADDRESS', 'noreply@example.com'),
'name' => env('MAIL_FROM_NAME', env('APP_NAME', 'Engelsystem')), 'name' => env('MAIL_FROM_NAME', env('APP_NAME', $default_app_name)),
], ],
'host' => env('MAIL_HOST', 'localhost'), 'host' => env('MAIL_HOST', 'localhost'),
@ -73,55 +75,52 @@ return [
'setup_admin_password' => env('SETUP_ADMIN_PASSWORD', null), 'setup_admin_password' => env('SETUP_ADMIN_PASSWORD', null),
'oauth' => [ 'oauth' => [
// '[name]' => [config] 'openid' => [
/*
'[name]' => [
// Name shown to the user (optional) // Name shown to the user (optional)
'name' => 'Some Provider', 'name' => env('OAUTH_DISPLAY_NAME', 'Team-Login'),
// Auth client ID // Auth client ID
'client_id' => 'engelsystem', 'client_id' => env('OAUTH_CLIENT_ID', 'engelsystem'),
// Auth client secret // Auth client secret
'client_secret' => '[generated by provider]', 'client_secret' => env('OAUTH_CLIENT_SECRET', null),
// Authentication URL // Authentication URL
'url_auth' => '[generated by provider]', 'url_auth' => env('OAUTH_AUTH_URL', null),
// Token URL // Token URL
'url_token' => '[generated by provider]', 'url_token' => env('OAUTH_TOKEN_URL', null),
// User info URL which provides userdata // User info URL which provides userdata
'url_info' => '[generated by provider]', 'url_info' => env('OAUTH_USERINFO_URL', null),
// Info unique user id field // Info unique user id field
'id' => 'uuid', 'id' => env('OAUTH_ID_CLAIM', 'sub'),
// The following fields are used for registration // The following fields are used for registration
// Info username field (optional) // Info username field (optional)
'username' => 'nickname', 'username' => env('OAUTH_USERNAME_CLAIM', 'preferred_username'),
// Info email field (optional) // Info email field (optional)
'email' => 'email', 'email' => env('OAUTH_EMAIL_CLAIM', 'email'),
// Info first name field (optional) // Info first name field (optional)
'first_name' => 'first-name', 'first_name' => env('OAUTH_FIRST_NAME_CLAIM', 'given_name'),
// Info last name field (optional) // Info last name field (optional)
'last_name' => 'last-name', 'last_name' => env('OAUTH_LAST_NAME_CLAIM', 'family_name'),
// User URL to provider, linked on provider settings page (optional) // User URL to provider, linked on provider settings page (optional)
'url' => '[provider page]', 'url' => env('OAUTH_ACCOUNT_URL', null),
// Whether info attributes are nested arrays (optional) // Whether info attributes are nested arrays (optional)
// For example {"user":{"name":"foo"}} can be accessed using user.name // For example {"user":{"name":"foo"}} can be accessed using user.name
'nested_info' => false, 'nested_info' => false,
// Only show after clicking the page title (optional) // Only show after clicking the page title (optional)
'hidden' => false, 'hidden' => false,
// Mark user as arrived when using this provider (optional) // Mark user as arrived when using this provider (optional)
'mark_arrived' => false, 'mark_arrived' => true,
// If the password field should be enabled on registration (optional) // If the password field should be enabled on registration (optional)
'enable_password' => false, 'enable_password' => false,
// Allow registration even if disabled in config (optional) // Allow registration even if disabled in config (optional)
'allow_registration' => null, 'allow_registration' => null,
// Auto join teams // Auto join teams
// Info groups field (optional) // Info groups field (optional)
'groups' => 'groups', //'groups' => 'groups',
// Groups to team (angeltype) mapping (optional) // Groups to team (angeltype) mapping (optional)
'teams' => [ /*'teams' => [
'/Lorem' => 4, // 4 being the ID of the angeltype '/Lorem' => 4, // 4 being the ID of the angeltype
'/Foo Mod' => ['id' => 5, 'supporter' => true], // 5 being the ID of the angeltype '/Foo Mod' => ['id' => 5, 'supporter' => true], // 5 being the ID of the angeltype
], ],*/
], ],
*/
], ],
// Default theme, 1=style1.css // Default theme, 1=style1.css
@ -221,7 +220,7 @@ return [
'registration_enabled' => (bool)env('REGISTRATION_ENABLED', true), 'registration_enabled' => (bool)env('REGISTRATION_ENABLED', true),
// Only arrived angels can sign up for shifts // Only arrived angels can sign up for shifts
'signup_requires_arrival' => (bool)env('SIGNUP_REQUIRES_ARRIVAL', false), 'signup_requires_arrival' => (bool)env('SIGNUP_REQUIRES_ARRIVAL', true),
// Whether newly-registered user should automatically be marked as arrived // Whether newly-registered user should automatically be marked as arrived
'autoarrive' => (bool)env('ANGEL_AUTOARRIVE', false), 'autoarrive' => (bool)env('ANGEL_AUTOARRIVE', false),
@ -257,32 +256,32 @@ return [
'enable_password' => (bool)env('ENABLE_PASSWORD', true), 'enable_password' => (bool)env('ENABLE_PASSWORD', true),
// Whether the DECT field should be enabled // Whether the DECT field should be enabled
'enable_dect' => (bool)env('ENABLE_DECT', true), 'enable_dect' => (bool)env('ENABLE_DECT', false),
// Enables prename and lastname // Enables prename and lastname
'enable_user_name' => (bool)env('ENABLE_USER_NAME', false), 'enable_user_name' => (bool)env('ENABLE_USER_NAME', true),
// Enable displaying the pronoun fields // Enable displaying the pronoun fields
'enable_pronoun' => (bool)env('ENABLE_PRONOUN', false), 'enable_pronoun' => (bool)env('ENABLE_PRONOUN', true),
// Enables the planned arrival/leave date // Enables the planned arrival/leave date
'enable_planned_arrival' => (bool)env('ENABLE_PLANNED_ARRIVAL', true), 'enable_planned_arrival' => (bool)env('ENABLE_PLANNED_ARRIVAL', true),
// Enables the T-Shirt configuration on signup and profile // Enables the T-Shirt configuration on signup and profile
'enable_tshirt_size' => (bool)env('ENABLE_TSHIRT_SIZE', true), 'enable_tshirt_size' => (bool)env('ENABLE_TSHIRT_SIZE', false),
// Enables the goody/voucher configuration on signup and profile // Enables the goody/voucher configuration on signup and profile
'enable_goody' => (bool)env('ENABLE_GOODY', false), 'enable_goody' => (bool)env('ENABLE_GOODY', false),
// Number of shifts to freeload until angel is locked for shift signup. // Number of shifts to freeload until angel is locked for shift signup.
'max_freeloadable_shifts' => env('MAX_FREELOADABLE_SHIFTS', 2), 'max_freeloadable_shifts' => env('MAX_FREELOADABLE_SHIFTS', 0),
// Local timezone // Local timezone
'timezone' => env('TIMEZONE', ini_get('date.timezone') ?: 'Europe/Berlin'), 'timezone' => env('TIMEZONE', ini_get('date.timezone') ?: 'Europe/Berlin'),
// Multiply 'night shifts' and freeloaded shifts (start or end between 2 and 6 exclusive) by 2 // Multiply 'night shifts' and freeloaded shifts (start or end between 2 and 6 exclusive) by 2
'night_shifts' => [ 'night_shifts' => [
'enabled' => (bool)env('NIGHT_SHIFTS', true), // Disable to weigh every shift the same 'enabled' => (bool)env('NIGHT_SHIFTS', false),
'start' => env('NIGHT_SHIFTS_START', 2), 'start' => env('NIGHT_SHIFTS_START', 2),
'end' => env('NIGHT_SHIFTS_END', 6), 'end' => env('NIGHT_SHIFTS_END', 6),
'multiplier' => env('NIGHT_SHIFTS_MULTIPLIER', 2), 'multiplier' => env('NIGHT_SHIFTS_MULTIPLIER', 2),
@ -304,7 +303,7 @@ return [
], ],
// The default locale to use // The default locale to use
'default_locale' => env('DEFAULT_LOCALE', 'en_US'), 'default_locale' => env('DEFAULT_LOCALE', 'de_DE'),
// Available T-Shirt sizes, set value to null if not available // Available T-Shirt sizes, set value to null if not available
'tshirt_sizes' => [ 'tshirt_sizes' => [
@ -359,9 +358,9 @@ return [
// A list of credits // A list of credits
'credits' => [ 'credits' => [
'Contribution' => 'Please visit [engelsystem/engelsystem](https://github.com/engelsystem/engelsystem) if ' // 'Contribution' => 'Please visit [engelsystem/engelsystem](https://github.com/engelsystem/engelsystem) if '
. 'you want to to contribute, have found any [bugs](https://github.com/engelsystem/engelsystem/issues) ' // . 'you want to to contribute, have found any [bugs](https://github.com/engelsystem/engelsystem/issues) '
. 'or need help.' // . 'or need help.'
], ],
// var dump server // var dump server

Loading…
Cancel
Save