summaryrefslogtreecommitdiff
path: root/config/config.default.php
diff options
context:
space:
mode:
Diffstat (limited to 'config/config.default.php')
-rw-r--r--config/config.default.php24
1 files changed, 15 insertions, 9 deletions
diff --git a/config/config.default.php b/config/config.default.php
index 606fa143..a0764bcc 100644
--- a/config/config.default.php
+++ b/config/config.default.php
@@ -15,22 +15,22 @@ 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'),
// From address of all emails
- 'no_reply_email' => 'noreply@engelsystem.de',
+ 'no_reply_email' => env('NO_REPLY_EMAIL', 'noreply@engelsystem.de'),
// Default theme, 1=style1.css
- 'theme' => 1,
+ 'theme' => env('THEME', 1),
// Available themes
'available_themes' => [
@@ -43,11 +43,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,
@@ -74,7 +77,7 @@ return [
'max_freeloadable_shifts' => 2,
// local timezone
- 'timezone' => 'Europe/Berlin',
+ 'timezone' => env('TIMEZONE', 'Europe/Berlin'),
// weigh every shift the same
//'shift_sum_formula' => 'SUM(`end` - `start`)',
@@ -106,7 +109,7 @@ return [
'en_US.UTF-8' => 'English',
],
- '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' => [
@@ -123,4 +126,7 @@ return [
'3XL' => '3XL',
'4XL' => '4XL'
],
+
+ // 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']),
];