4 * Global app configuration options.
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.
13 // The environment to run BookStack in.
14 // Options: production, development, demo, testing
15 'env' => env('APP_ENV', 'production'),
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),
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.
25 'books' => env('APP_VIEWS_BOOKS', 'list'),
26 'bookshelves' => env('APP_VIEWS_BOOKSHELVES', 'grid'),
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),
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),
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),
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', ''),
48 // Application timezone for back-end date functions.
49 'timezone' => env('APP_TIMEZONE', 'UTC'),
51 // Default locale to use
52 'locale' => env('APP_LANG', 'en'),
55 'locales' => ['en', 'ar', 'de', 'de_informal', 'es', 'es_AR', 'fr', 'nl', 'pt_BR', 'sk', 'cs', 'sv', 'kr', 'ja', 'pl', 'it', 'ru', 'uk', 'zh_CN', 'zh_TW'],
57 // Application Fallback Locale
58 'fallback_locale' => 'en',
60 // Enable right-to-left text control.
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),
70 'key' => env('APP_KEY', 'AbAZchsay4uBTU33RubBzLKw203yqSqr'),
73 'cipher' => 'AES-256-CBC',
75 // Logging configuration
76 // Options: single, daily, syslog, errorlog
77 'log' => env('APP_LOGGING', 'single'),
79 // Application Services Provides
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,
105 // Third party service providers
106 Intervention\Image\ImageServiceProvider::class,
107 Barryvdh\DomPDF\ServiceProvider::class,
108 Barryvdh\Snappy\ServiceProvider::class,
111 // BookStack replacement service providers (Extends Laravel)
112 BookStack\Providers\PaginationServiceProvider::class,
113 BookStack\Providers\TranslationServiceProvider::class,
115 // BookStack custom service providers
116 BookStack\Providers\AuthServiceProvider::class,
117 BookStack\Providers\AppServiceProvider::class,
118 BookStack\Providers\BroadcastServiceProvider::class,
119 BookStack\Providers\EventServiceProvider::class,
120 BookStack\Providers\RouteServiceProvider::class,
121 BookStack\Providers\CustomFacadeProvider::class,
125 |--------------------------------------------------------------------------
127 |--------------------------------------------------------------------------
129 | This array of class aliases will be registered when this application
130 | is started. However, feel free to register as many as you wish as
131 | the aliases are "lazy" loaded so they don't hinder performance.
135 // Class aliases, Registered on application start
139 'App' => Illuminate\Support\Facades\App::class,
140 'Artisan' => Illuminate\Support\Facades\Artisan::class,
141 'Auth' => Illuminate\Support\Facades\Auth::class,
142 'Blade' => Illuminate\Support\Facades\Blade::class,
143 'Bus' => Illuminate\Support\Facades\Bus::class,
144 'Cache' => Illuminate\Support\Facades\Cache::class,
145 'Config' => Illuminate\Support\Facades\Config::class,
146 'Cookie' => Illuminate\Support\Facades\Cookie::class,
147 'Crypt' => Illuminate\Support\Facades\Crypt::class,
148 'DB' => Illuminate\Support\Facades\DB::class,
149 'Eloquent' => Illuminate\Database\Eloquent\Model::class,
150 'Event' => Illuminate\Support\Facades\Event::class,
151 'File' => Illuminate\Support\Facades\File::class,
152 'Hash' => Illuminate\Support\Facades\Hash::class,
153 'Input' => Illuminate\Support\Facades\Input::class,
154 'Inspiring' => Illuminate\Foundation\Inspiring::class,
155 'Lang' => Illuminate\Support\Facades\Lang::class,
156 'Log' => Illuminate\Support\Facades\Log::class,
157 'Mail' => Illuminate\Support\Facades\Mail::class,
158 'Notification' => Illuminate\Support\Facades\Notification::class,
159 'Password' => Illuminate\Support\Facades\Password::class,
160 'Queue' => Illuminate\Support\Facades\Queue::class,
161 'Redirect' => Illuminate\Support\Facades\Redirect::class,
162 'Redis' => Illuminate\Support\Facades\Redis::class,
163 'Request' => Illuminate\Support\Facades\Request::class,
164 'Response' => Illuminate\Support\Facades\Response::class,
165 'Route' => Illuminate\Support\Facades\Route::class,
166 'Schema' => Illuminate\Support\Facades\Schema::class,
167 'Session' => Illuminate\Support\Facades\Session::class,
168 'Storage' => Illuminate\Support\Facades\Storage::class,
169 'URL' => Illuminate\Support\Facades\URL::class,
170 'Validator' => Illuminate\Support\Facades\Validator::class,
171 'View' => Illuminate\Support\Facades\View::class,
172 'Socialite' => Laravel\Socialite\Facades\Socialite::class,
175 'ImageTool' => Intervention\Image\Facades\Image::class,
176 'DomPDF' => Barryvdh\DomPDF\Facade::class,
177 'SnappyPDF' => Barryvdh\Snappy\Facades\SnappyPdf::class,
180 'Activity' => BookStack\Facades\Activity::class,
181 'Setting' => BookStack\Facades\Setting::class,
182 'Views' => BookStack\Facades\Views::class,
183 'Images' => BookStack\Facades\Images::class,
187 // Proxy configuration
188 'proxies' => env('APP_PROXIES', ''),