]> BookStack Code Mirror - bookstack/blob - app/Config/app.php
Add error messages, fix LDAP error
[bookstack] / app / Config / app.php
1 <?php
2
3 /**
4  * Global app configuration options.
5  *
6  * Changes to these config files are not supported by BookStack and may break upon updates.
7  * Configuration should be altered via the `.env` file or environment variables.
8  * Do not edit this file unless you're happy to maintain any changes yourself.
9  */
10
11 return [
12
13     // The environment to run BookStack in.
14     // Options: production, development, demo, testing
15     'env' => env('APP_ENV', 'production'),
16
17     // Enter the application in debug mode.
18     // Shows much more verbose error messages. Has potential to show
19     // private configuration variables so should remain disabled in public.
20     'debug' => env('APP_DEBUG', false),
21
22     // Set the default view type for various lists. Can be overridden by user preferences.
23     // These will be used for public viewers and users that have not set a preference.
24     'views' => [
25         'books' => env('APP_VIEWS_BOOKS', 'list'),
26         'bookshelves' => env('APP_VIEWS_BOOKSHELVES', 'grid'),
27     ],
28
29     // The number of revisions to keep in the database.
30     // Once this limit is reached older revisions will be deleted.
31     // If set to false then a limit will not be enforced.
32     'revision_limit' => env('REVISION_LIMIT', 50),
33
34     // Allow <script> tags to entered within page content.
35     // <script> tags are escaped by default.
36     // Even when overridden the WYSIWYG editor may still escape script content.
37     'allow_content_scripts' => env('ALLOW_CONTENT_SCRIPTS', false),
38
39     // Override the default behaviour for allowing crawlers to crawl the instance.
40     // May be ignored if view has be overridden or modified.
41     // Defaults to null since, if not set, 'app-public' status used instead.
42     'allow_robots' => env('ALLOW_ROBOTS', null),
43
44     // Application Base URL, Used by laravel in development commands
45     // and used by BookStack in URL generation.
46     'url' => env('APP_URL', '') === 'http://bookstack.dev' ? '' : env('APP_URL', ''),
47
48     // Application timezone for back-end date functions.
49     'timezone' => env('APP_TIMEZONE', 'UTC'),
50
51     // Default locale to use
52     'locale' => env('APP_LANG', 'en'),
53
54     // Locales available
55     'locales' => ['en', 'ar', 'de', 'de_informal', 'es', 'es_AR', 'fr', 'hu', 'nl', 'pt_BR', 'sk', 'cs', 'sv', 'kr', 'ja', 'pl', 'it', 'ru', 'uk', 'zh_CN', 'zh_TW'],
56
57     //  Application Fallback Locale
58     'fallback_locale' => 'en',
59
60     // Enable right-to-left text control.
61     'rtl' => false,
62
63     // Auto-detect the locale for public users
64     // For public users their locale can be guessed by headers sent by their
65     // browser. This is usually set by users in their browser settings.
66     // If not found the default app locale will be used.
67     'auto_detect_locale' => env('APP_AUTO_LANG_PUBLIC', true),
68
69     // Encryption key
70     'key' => env('APP_KEY', 'AbAZchsay4uBTU33RubBzLKw203yqSqr'),
71
72     // Encryption cipher
73     'cipher' => 'AES-256-CBC',
74
75     // Logging configuration
76     // Options: single, daily, syslog, errorlog
77     'log' => env('APP_LOGGING', 'single'),
78
79     // Application Services Provides
80     'providers' => [
81
82         // Laravel Framework Service Providers...
83         Illuminate\Auth\AuthServiceProvider::class,
84         Illuminate\Broadcasting\BroadcastServiceProvider::class,
85         Illuminate\Bus\BusServiceProvider::class,
86         Illuminate\Cache\CacheServiceProvider::class,
87         Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class,
88         Illuminate\Cookie\CookieServiceProvider::class,
89         Illuminate\Database\DatabaseServiceProvider::class,
90         Illuminate\Encryption\EncryptionServiceProvider::class,
91         Illuminate\Filesystem\FilesystemServiceProvider::class,
92         Illuminate\Foundation\Providers\FoundationServiceProvider::class,
93         Illuminate\Hashing\HashServiceProvider::class,
94         Illuminate\Mail\MailServiceProvider::class,
95         Illuminate\Pipeline\PipelineServiceProvider::class,
96         Illuminate\Queue\QueueServiceProvider::class,
97         Illuminate\Redis\RedisServiceProvider::class,
98         Illuminate\Auth\Passwords\PasswordResetServiceProvider::class,
99         Illuminate\Session\SessionServiceProvider::class,
100         Illuminate\Validation\ValidationServiceProvider::class,
101         Illuminate\View\ViewServiceProvider::class,
102         Illuminate\Notifications\NotificationServiceProvider::class,
103         SocialiteProviders\Manager\ServiceProvider::class,
104
105         // Third party service providers
106         Intervention\Image\ImageServiceProvider::class,
107         Barryvdh\DomPDF\ServiceProvider::class,
108         Barryvdh\Snappy\ServiceProvider::class,
109         Aacotroneo\Saml2\Saml2ServiceProvider::class,
110
111
112         // BookStack replacement service providers (Extends Laravel)
113         BookStack\Providers\PaginationServiceProvider::class,
114         BookStack\Providers\TranslationServiceProvider::class,
115
116         // BookStack custom service providers
117         BookStack\Providers\AuthServiceProvider::class,
118         BookStack\Providers\AppServiceProvider::class,
119         BookStack\Providers\BroadcastServiceProvider::class,
120         BookStack\Providers\EventServiceProvider::class,
121         BookStack\Providers\RouteServiceProvider::class,
122         BookStack\Providers\CustomFacadeProvider::class,
123     ],
124
125     /*
126     |--------------------------------------------------------------------------
127     | Class Aliases
128     |--------------------------------------------------------------------------
129     |
130     | This array of class aliases will be registered when this application
131     | is started. However, feel free to register as many as you wish as
132     | the aliases are "lazy" loaded so they don't hinder performance.
133     |
134     */
135
136     // Class aliases, Registered on application start
137     'aliases' => [
138
139         // Laravel
140         'App'       => Illuminate\Support\Facades\App::class,
141         'Artisan'   => Illuminate\Support\Facades\Artisan::class,
142         'Auth'      => Illuminate\Support\Facades\Auth::class,
143         'Blade'     => Illuminate\Support\Facades\Blade::class,
144         'Bus'       => Illuminate\Support\Facades\Bus::class,
145         'Cache'     => Illuminate\Support\Facades\Cache::class,
146         'Config'    => Illuminate\Support\Facades\Config::class,
147         'Cookie'    => Illuminate\Support\Facades\Cookie::class,
148         'Crypt'     => Illuminate\Support\Facades\Crypt::class,
149         'DB'        => Illuminate\Support\Facades\DB::class,
150         'Eloquent'  => Illuminate\Database\Eloquent\Model::class,
151         'Event'     => Illuminate\Support\Facades\Event::class,
152         'File'      => Illuminate\Support\Facades\File::class,
153         'Hash'      => Illuminate\Support\Facades\Hash::class,
154         'Input'     => Illuminate\Support\Facades\Input::class,
155         'Inspiring' => Illuminate\Foundation\Inspiring::class,
156         'Lang'      => Illuminate\Support\Facades\Lang::class,
157         'Log'       => Illuminate\Support\Facades\Log::class,
158         'Mail'      => Illuminate\Support\Facades\Mail::class,
159         'Notification' => Illuminate\Support\Facades\Notification::class,
160         'Password'  => Illuminate\Support\Facades\Password::class,
161         'Queue'     => Illuminate\Support\Facades\Queue::class,
162         'Redirect'  => Illuminate\Support\Facades\Redirect::class,
163         'Redis'     => Illuminate\Support\Facades\Redis::class,
164         'Request'   => Illuminate\Support\Facades\Request::class,
165         'Response'  => Illuminate\Support\Facades\Response::class,
166         'Route'     => Illuminate\Support\Facades\Route::class,
167         'Schema'    => Illuminate\Support\Facades\Schema::class,
168         'Session'   => Illuminate\Support\Facades\Session::class,
169         'Storage'   => Illuminate\Support\Facades\Storage::class,
170         'URL'       => Illuminate\Support\Facades\URL::class,
171         'Validator' => Illuminate\Support\Facades\Validator::class,
172         'View'      => Illuminate\Support\Facades\View::class,
173         'Socialite' => Laravel\Socialite\Facades\Socialite::class,
174
175         // Third Party
176         'ImageTool' => Intervention\Image\Facades\Image::class,
177         'DomPDF' => Barryvdh\DomPDF\Facade::class,
178         'SnappyPDF' => Barryvdh\Snappy\Facades\SnappyPdf::class,
179
180         // Custom BookStack
181         'Activity' => BookStack\Facades\Activity::class,
182         'Setting'  => BookStack\Facades\Setting::class,
183         'Views'    => BookStack\Facades\Views::class,
184         'Images'   => BookStack\Facades\Images::class,
185
186     ],
187
188     // Proxy configuration
189     'proxies' => env('APP_PROXIES', ''),
190
191 ];