]> BookStack Code Mirror - bookstack/blob - config/app.php
Merge branch 'master' of git://github.com/kmoj86/BookStack into kmoj86-master
[bookstack] / config / app.php
1 <?php
2
3 return [
4
5     'env' => env('APP_ENV', 'production'),
6
7     /**
8      * Set the default view type for various lists. Can be overridden by user preferences.
9      * This will be used for public viewers and users that have not set a preference.
10      */
11     'views' => [
12         'books' => env('APP_VIEWS_BOOKS', 'list')
13     ],
14
15     /**
16      * Allow <script> tags to entered within page content.
17      * <script> tags are escaped by default.
18      * Even when overridden the WYSIWYG editor may still escape script content.
19      */
20     'allow_content_scripts' => env('ALLOW_CONTENT_SCRIPTS', false),
21
22     /**
23      * Override the default behaviour for allowing crawlers to crawl the instance.
24      * May be ignored if view has be overridden or modified.
25      * Defaults to null since, if not set, 'app-public' status used instead.
26      */
27     'allow_robots' => env('ALLOW_ROBOTS', null),
28
29     /*
30     |--------------------------------------------------------------------------
31     | Application Debug Mode
32     |--------------------------------------------------------------------------
33     |
34     | When your application is in debug mode, detailed error messages with
35     | stack traces will be shown on every error that occurs within your
36     | application. If disabled, a simple generic error page is shown.
37     |
38     */
39
40     'debug' => env('APP_DEBUG', false),
41
42     /*
43     |--------------------------------------------------------------------------
44     | Application URL
45     |--------------------------------------------------------------------------
46     |
47     | This URL is used by the console to properly generate URLs when using
48     | the Artisan command line tool. You should set this to the root of
49     | your application so that it is used when running Artisan tasks.
50     |
51     */
52
53     'url' => env('APP_URL', '') === 'http://bookstack.dev' ? '' : env('APP_URL', ''),
54
55     /*
56     |--------------------------------------------------------------------------
57     | Application Timezone
58     |--------------------------------------------------------------------------
59     |
60     | Here you may specify the default timezone for your application, which
61     | will be used by the PHP date and date-time functions. We have gone
62     | ahead and set this to a sensible default for you out of the box.
63     |
64     */
65
66     'timezone' => 'UTC',
67
68     /*
69     |--------------------------------------------------------------------------
70     | Application Locale Configuration
71     |--------------------------------------------------------------------------
72     |
73     | The application locale determines the default locale that will be used
74     | by the translation service provider. You are free to set this value
75     | to any of the locales which will be supported by the application.
76     |
77     */
78
79     'locale' => env('APP_LANG', 'en'),
80     'locales' => ['en', 'ar', 'de', 'es', 'es_AR', 'fr', 'nl', 'pt_BR', 'sk', 'sv', 'ja', 'pl', 'it', 'ru', 'zh_CN', 'zh_TW'],
81
82     /*
83     |--------------------------------------------------------------------------
84     | Auto-detect the locale for public users
85     |--------------------------------------------------------------------------
86     |
87     | For public users their locale can be guessed by headers sent by their
88     | browser. This is usually set by users in their browser settings.
89     | If not found the default app locale will be used.
90     |
91     */
92     'auto_detect_locale' => env('APP_AUTO_LANG_PUBLIC', true),
93
94     /*
95     |--------------------------------------------------------------------------
96     | Application Fallback Locale
97     |--------------------------------------------------------------------------
98     |
99     | The fallback locale determines the locale to use when the current one
100     | is not available. You may change the value to correspond to any of
101     | the language folders that are provided through your application.
102     |
103     */
104
105     'fallback_locale' => 'en',
106
107     /*
108     |--------------------------------------------------------------------------
109     | Encryption Key
110     |--------------------------------------------------------------------------
111     |
112     | This key is used by the Illuminate encrypter service and should be set
113     | to a random, 32 character string, otherwise these encrypted strings
114     | will not be safe. Please do this before deploying an application!
115     |
116     */
117
118     'key' => env('APP_KEY', 'AbAZchsay4uBTU33RubBzLKw203yqSqr'),
119
120     'cipher' => 'AES-256-CBC',
121
122     /*
123     |--------------------------------------------------------------------------
124     | Logging Configuration
125     |--------------------------------------------------------------------------
126     |
127     | Here you may configure the log settings for your application. Out of
128     | the box, Laravel uses the Monolog PHP logging library. This gives
129     | you a variety of powerful log handlers / formatters to utilize.
130     |
131     | Available Settings: "single", "daily", "syslog", "errorlog"
132     |
133     */
134
135     'log' => env('APP_LOGGING', 'single'),
136
137     /*
138     |--------------------------------------------------------------------------
139     | Autoloaded Service Providers
140     |--------------------------------------------------------------------------
141     |
142     | The service providers listed here will be automatically loaded on the
143     | request to your application. Feel free to add your own services to
144     | this array to grant expanded functionality to your applications.
145     |
146     */
147
148     'providers' => [
149
150         /*
151          * Laravel Framework Service Providers...
152          */
153         Illuminate\Auth\AuthServiceProvider::class,
154         Illuminate\Broadcasting\BroadcastServiceProvider::class,
155         Illuminate\Bus\BusServiceProvider::class,
156         Illuminate\Cache\CacheServiceProvider::class,
157         Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class,
158         Illuminate\Cookie\CookieServiceProvider::class,
159         Illuminate\Database\DatabaseServiceProvider::class,
160         Illuminate\Encryption\EncryptionServiceProvider::class,
161         Illuminate\Filesystem\FilesystemServiceProvider::class,
162         Illuminate\Foundation\Providers\FoundationServiceProvider::class,
163         Illuminate\Hashing\HashServiceProvider::class,
164         Illuminate\Mail\MailServiceProvider::class,
165         Illuminate\Pipeline\PipelineServiceProvider::class,
166         Illuminate\Queue\QueueServiceProvider::class,
167         Illuminate\Redis\RedisServiceProvider::class,
168         Illuminate\Auth\Passwords\PasswordResetServiceProvider::class,
169         Illuminate\Session\SessionServiceProvider::class,
170         Illuminate\Translation\TranslationServiceProvider::class,
171         Illuminate\Validation\ValidationServiceProvider::class,
172         Illuminate\View\ViewServiceProvider::class,
173         Illuminate\Notifications\NotificationServiceProvider::class,
174         SocialiteProviders\Manager\ServiceProvider::class,
175
176         /**
177          * Third Party
178          */
179         Intervention\Image\ImageServiceProvider::class,
180         Barryvdh\DomPDF\ServiceProvider::class,
181         Barryvdh\Snappy\ServiceProvider::class,
182
183
184         /*
185          * Application Service Providers...
186          */
187         BookStack\Providers\PaginationServiceProvider::class,
188
189         BookStack\Providers\AuthServiceProvider::class,
190         BookStack\Providers\AppServiceProvider::class,
191         BookStack\Providers\BroadcastServiceProvider::class,
192         BookStack\Providers\EventServiceProvider::class,
193         BookStack\Providers\RouteServiceProvider::class,
194         BookStack\Providers\CustomFacadeProvider::class,
195     ],
196
197     /*
198     |--------------------------------------------------------------------------
199     | Class Aliases
200     |--------------------------------------------------------------------------
201     |
202     | This array of class aliases will be registered when this application
203     | is started. However, feel free to register as many as you wish as
204     | the aliases are "lazy" loaded so they don't hinder performance.
205     |
206     */
207
208     'aliases' => [
209
210         'App'       => Illuminate\Support\Facades\App::class,
211         'Artisan'   => Illuminate\Support\Facades\Artisan::class,
212         'Auth'      => Illuminate\Support\Facades\Auth::class,
213         'Blade'     => Illuminate\Support\Facades\Blade::class,
214         'Bus'       => Illuminate\Support\Facades\Bus::class,
215         'Cache'     => Illuminate\Support\Facades\Cache::class,
216         'Config'    => Illuminate\Support\Facades\Config::class,
217         'Cookie'    => Illuminate\Support\Facades\Cookie::class,
218         'Crypt'     => Illuminate\Support\Facades\Crypt::class,
219         'DB'        => Illuminate\Support\Facades\DB::class,
220         'Eloquent'  => Illuminate\Database\Eloquent\Model::class,
221         'Event'     => Illuminate\Support\Facades\Event::class,
222         'File'      => Illuminate\Support\Facades\File::class,
223         'Hash'      => Illuminate\Support\Facades\Hash::class,
224         'Input'     => Illuminate\Support\Facades\Input::class,
225         'Inspiring' => Illuminate\Foundation\Inspiring::class,
226         'Lang'      => Illuminate\Support\Facades\Lang::class,
227         'Log'       => Illuminate\Support\Facades\Log::class,
228         'Mail'      => Illuminate\Support\Facades\Mail::class,
229         'Notification' => Illuminate\Support\Facades\Notification::class,
230         'Password'  => Illuminate\Support\Facades\Password::class,
231         'Queue'     => Illuminate\Support\Facades\Queue::class,
232         'Redirect'  => Illuminate\Support\Facades\Redirect::class,
233         'Redis'     => Illuminate\Support\Facades\Redis::class,
234         'Request'   => Illuminate\Support\Facades\Request::class,
235         'Response'  => Illuminate\Support\Facades\Response::class,
236         'Route'     => Illuminate\Support\Facades\Route::class,
237         'Schema'    => Illuminate\Support\Facades\Schema::class,
238         'Session'   => Illuminate\Support\Facades\Session::class,
239         'Storage'   => Illuminate\Support\Facades\Storage::class,
240         'URL'       => Illuminate\Support\Facades\URL::class,
241         'Validator' => Illuminate\Support\Facades\Validator::class,
242         'View'      => Illuminate\Support\Facades\View::class,
243         'Socialite' => Laravel\Socialite\Facades\Socialite::class,
244
245         /**
246          * Third Party
247          */
248
249         'ImageTool' => Intervention\Image\Facades\Image::class,
250         'DomPDF' => Barryvdh\DomPDF\Facade::class,
251         'SnappyPDF' => Barryvdh\Snappy\Facades\SnappyPdf::class,
252
253         /**
254          * Custom
255          */
256
257         'Activity' => BookStack\Services\Facades\Activity::class,
258         'Setting'  => BookStack\Services\Facades\Setting::class,
259         'Views'    => BookStack\Services\Facades\Views::class,
260         'Images'   => BookStack\Services\Facades\Images::class,
261
262     ],
263
264     'proxies' => env('APP_PROXIES', ''),
265
266 ];