]> BookStack Code Mirror - bookstack/blob - app/Config/app.php
Added testing to cover the pages API
[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     // The number of days that content will remain in the recycle bin before
35     // being considered for auto-removal. It is not a guarantee that content will
36     // be removed after this time.
37     // Set to 0 for no recycle bin functionality.
38     // Set to -1 for unlimited recycle bin lifetime.
39     'recycle_bin_lifetime' => env('RECYCLE_BIN_LIFETIME', 30),
40
41     // Allow <script> tags to entered within page content.
42     // <script> tags are escaped by default.
43     // Even when overridden the WYSIWYG editor may still escape script content.
44     'allow_content_scripts' => env('ALLOW_CONTENT_SCRIPTS', false),
45
46     // Override the default behaviour for allowing crawlers to crawl the instance.
47     // May be ignored if view has be overridden or modified.
48     // Defaults to null since, if not set, 'app-public' status used instead.
49     'allow_robots' => env('ALLOW_ROBOTS', null),
50
51     // Application Base URL, Used by laravel in development commands
52     // and used by BookStack in URL generation.
53     'url' => env('APP_URL', '') === 'http://bookstack.dev' ? '' : env('APP_URL', ''),
54
55     // Application timezone for back-end date functions.
56     'timezone' => env('APP_TIMEZONE', 'UTC'),
57
58     // Default locale to use
59     'locale' => env('APP_LANG', 'en'),
60
61     // Locales available
62     'locales' => ['en', 'ar', 'bg', 'cs', 'da', 'de', 'de_informal', 'es', 'es_AR', 'fa', 'fr', 'he', 'hu', 'it', 'ja', 'ko', 'nl', 'pt', 'pt_BR', 'sk', 'sl', 'sv', 'pl',  'ru', 'th', 'tr', 'uk', 'vi', 'zh_CN', 'zh_TW',],
63
64     //  Application Fallback Locale
65     'fallback_locale' => 'en',
66
67     // Faker Locale
68     'faker_locale' => 'en_GB',
69
70     // Enable right-to-left text control.
71     'rtl' => false,
72
73     // Auto-detect the locale for public users
74     // For public users their locale can be guessed by headers sent by their
75     // browser. This is usually set by users in their browser settings.
76     // If not found the default app locale will be used.
77     'auto_detect_locale' => env('APP_AUTO_LANG_PUBLIC', true),
78
79     // Encryption key
80     'key' => env('APP_KEY', 'AbAZchsay4uBTU33RubBzLKw203yqSqr'),
81
82     // Encryption cipher
83     'cipher' => 'AES-256-CBC',
84
85     // Application Services Provides
86     'providers' => [
87
88         // Laravel Framework Service Providers...
89         Illuminate\Auth\AuthServiceProvider::class,
90         Illuminate\Broadcasting\BroadcastServiceProvider::class,
91         Illuminate\Bus\BusServiceProvider::class,
92         Illuminate\Cache\CacheServiceProvider::class,
93         Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class,
94         Illuminate\Cookie\CookieServiceProvider::class,
95         Illuminate\Database\DatabaseServiceProvider::class,
96         Illuminate\Encryption\EncryptionServiceProvider::class,
97         Illuminate\Filesystem\FilesystemServiceProvider::class,
98         Illuminate\Foundation\Providers\FoundationServiceProvider::class,
99         Illuminate\Hashing\HashServiceProvider::class,
100         Illuminate\Mail\MailServiceProvider::class,
101         Illuminate\Pipeline\PipelineServiceProvider::class,
102         Illuminate\Queue\QueueServiceProvider::class,
103         Illuminate\Redis\RedisServiceProvider::class,
104         Illuminate\Auth\Passwords\PasswordResetServiceProvider::class,
105         Illuminate\Session\SessionServiceProvider::class,
106         Illuminate\Validation\ValidationServiceProvider::class,
107         Illuminate\View\ViewServiceProvider::class,
108         Illuminate\Notifications\NotificationServiceProvider::class,
109         SocialiteProviders\Manager\ServiceProvider::class,
110
111         // Third party service providers
112         Intervention\Image\ImageServiceProvider::class,
113         Barryvdh\DomPDF\ServiceProvider::class,
114         Barryvdh\Snappy\ServiceProvider::class,
115
116         // BookStack replacement service providers (Extends Laravel)
117         BookStack\Providers\PaginationServiceProvider::class,
118         BookStack\Providers\TranslationServiceProvider::class,
119
120         // BookStack custom service providers
121         BookStack\Providers\AuthServiceProvider::class,
122         BookStack\Providers\AppServiceProvider::class,
123         BookStack\Providers\BroadcastServiceProvider::class,
124         BookStack\Providers\EventServiceProvider::class,
125         BookStack\Providers\RouteServiceProvider::class,
126         BookStack\Providers\CustomFacadeProvider::class,
127         BookStack\Providers\CustomValidationServiceProvider::class,
128     ],
129
130     /*
131     |--------------------------------------------------------------------------
132     | Class Aliases
133     |--------------------------------------------------------------------------
134     |
135     | This array of class aliases will be registered when this application
136     | is started. However, feel free to register as many as you wish as
137     | the aliases are "lazy" loaded so they don't hinder performance.
138     |
139     */
140
141     // Class aliases, Registered on application start
142     'aliases' => [
143
144         // Laravel
145         'App'       => Illuminate\Support\Facades\App::class,
146         'Arr'       => Illuminate\Support\Arr::class,
147         'Artisan'   => Illuminate\Support\Facades\Artisan::class,
148         'Auth'      => Illuminate\Support\Facades\Auth::class,
149         'Blade'     => Illuminate\Support\Facades\Blade::class,
150         'Bus'       => Illuminate\Support\Facades\Bus::class,
151         'Cache'     => Illuminate\Support\Facades\Cache::class,
152         'Config'    => Illuminate\Support\Facades\Config::class,
153         'Cookie'    => Illuminate\Support\Facades\Cookie::class,
154         'Crypt'     => Illuminate\Support\Facades\Crypt::class,
155         'DB'        => Illuminate\Support\Facades\DB::class,
156         'Eloquent'  => Illuminate\Database\Eloquent\Model::class,
157         'Event'     => Illuminate\Support\Facades\Event::class,
158         'File'      => Illuminate\Support\Facades\File::class,
159         'Hash'      => Illuminate\Support\Facades\Hash::class,
160         'Input'     => Illuminate\Support\Facades\Input::class,
161         'Inspiring' => Illuminate\Foundation\Inspiring::class,
162         'Lang'      => Illuminate\Support\Facades\Lang::class,
163         'Log'       => Illuminate\Support\Facades\Log::class,
164         'Mail'      => Illuminate\Support\Facades\Mail::class,
165         'Notification' => Illuminate\Support\Facades\Notification::class,
166         'Password'  => Illuminate\Support\Facades\Password::class,
167         'Queue'     => Illuminate\Support\Facades\Queue::class,
168         'Redirect'  => Illuminate\Support\Facades\Redirect::class,
169         'Redis'     => Illuminate\Support\Facades\Redis::class,
170         'Request'   => Illuminate\Support\Facades\Request::class,
171         'Response'  => Illuminate\Support\Facades\Response::class,
172         'Route'     => Illuminate\Support\Facades\Route::class,
173         'Schema'    => Illuminate\Support\Facades\Schema::class,
174         'Session'   => Illuminate\Support\Facades\Session::class,
175         'Storage'   => Illuminate\Support\Facades\Storage::class,
176         'Str'       => Illuminate\Support\Str::class,
177         'URL'       => Illuminate\Support\Facades\URL::class,
178         'Validator' => Illuminate\Support\Facades\Validator::class,
179         'View'      => Illuminate\Support\Facades\View::class,
180         'Socialite' => Laravel\Socialite\Facades\Socialite::class,
181
182         // Third Party
183         'ImageTool' => Intervention\Image\Facades\Image::class,
184         'DomPDF' => Barryvdh\DomPDF\Facade::class,
185         'SnappyPDF' => Barryvdh\Snappy\Facades\SnappyPdf::class,
186
187         // Custom BookStack
188         'Activity' => BookStack\Facades\Activity::class,
189         'Setting'  => BookStack\Facades\Setting::class,
190         'Views'    => BookStack\Facades\Views::class,
191         'Images'   => BookStack\Facades\Images::class,
192         'Permissions' => BookStack\Facades\Permissions::class,
193
194     ],
195
196     // Proxy configuration
197     'proxies' => env('APP_PROXIES', ''),
198
199 ];