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