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