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 // The number of revisions to keep in the database.
23 // Once this limit is reached older revisions will be deleted.
24 // If set to false then a limit will not be enforced.
25 'revision_limit' => env('REVISION_LIMIT', 50),
27 // The number of days that content will remain in the recycle bin before
28 // being considered for auto-removal. It is not a guarantee that content will
29 // be removed after this time.
30 // Set to 0 for no recycle bin functionality.
31 // Set to -1 for unlimited recycle bin lifetime.
32 'recycle_bin_lifetime' => env('RECYCLE_BIN_LIFETIME', 30),
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 // A list of hosts that BookStack can be iframed within.
49 // Space separated if multiple. BookStack host domain is auto-inferred.
50 'iframe_hosts' => env('ALLOWED_IFRAME_HOSTS', null),
52 // Application timezone for back-end date functions.
53 'timezone' => env('APP_TIMEZONE', 'UTC'),
55 // Default locale to use
56 'locale' => env('APP_LANG', 'en'),
59 'locales' => ['en', 'ar', 'bg', 'bs', 'ca', 'cs', 'da', 'de', 'de_informal', 'es', 'es_AR', 'fa', 'fr', 'he', 'hr', 'hu', 'id', 'it', 'ja', 'ko', 'lv', 'nl', 'nb', 'pt', 'pt_BR', 'sk', 'sl', 'sv', 'pl', 'ru', 'th', 'tr', 'uk', 'vi', 'zh_CN', 'zh_TW',],
61 // Application Fallback Locale
62 'fallback_locale' => 'en',
65 'faker_locale' => 'en_GB',
67 // Enable right-to-left text control.
70 // Auto-detect the locale for public users
71 // For public users their locale can be guessed by headers sent by their
72 // browser. This is usually set by users in their browser settings.
73 // If not found the default app locale will be used.
74 'auto_detect_locale' => env('APP_AUTO_LANG_PUBLIC', true),
77 'key' => env('APP_KEY', 'AbAZchsay4uBTU33RubBzLKw203yqSqr'),
80 'cipher' => 'AES-256-CBC',
82 // Application Services Provides
85 // Laravel Framework Service Providers...
86 Illuminate\Auth\AuthServiceProvider::class,
87 Illuminate\Broadcasting\BroadcastServiceProvider::class,
88 Illuminate\Bus\BusServiceProvider::class,
89 Illuminate\Cache\CacheServiceProvider::class,
90 Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class,
91 Illuminate\Cookie\CookieServiceProvider::class,
92 Illuminate\Database\DatabaseServiceProvider::class,
93 Illuminate\Encryption\EncryptionServiceProvider::class,
94 Illuminate\Filesystem\FilesystemServiceProvider::class,
95 Illuminate\Foundation\Providers\FoundationServiceProvider::class,
96 Illuminate\Hashing\HashServiceProvider::class,
97 Illuminate\Mail\MailServiceProvider::class,
98 Illuminate\Pipeline\PipelineServiceProvider::class,
99 Illuminate\Queue\QueueServiceProvider::class,
100 Illuminate\Redis\RedisServiceProvider::class,
101 Illuminate\Auth\Passwords\PasswordResetServiceProvider::class,
102 Illuminate\Session\SessionServiceProvider::class,
103 Illuminate\Validation\ValidationServiceProvider::class,
104 Illuminate\View\ViewServiceProvider::class,
105 Illuminate\Notifications\NotificationServiceProvider::class,
106 SocialiteProviders\Manager\ServiceProvider::class,
108 // Third party service providers
109 Intervention\Image\ImageServiceProvider::class,
110 Barryvdh\DomPDF\ServiceProvider::class,
111 Barryvdh\Snappy\ServiceProvider::class,
113 // BookStack replacement service providers (Extends Laravel)
114 BookStack\Providers\PaginationServiceProvider::class,
115 BookStack\Providers\TranslationServiceProvider::class,
117 // BookStack custom service providers
118 BookStack\Providers\ThemeServiceProvider::class,
119 BookStack\Providers\AuthServiceProvider::class,
120 BookStack\Providers\AppServiceProvider::class,
121 BookStack\Providers\BroadcastServiceProvider::class,
122 BookStack\Providers\EventServiceProvider::class,
123 BookStack\Providers\RouteServiceProvider::class,
124 BookStack\Providers\CustomFacadeProvider::class,
125 BookStack\Providers\CustomValidationServiceProvider::class,
129 |--------------------------------------------------------------------------
131 |--------------------------------------------------------------------------
133 | This array of class aliases will be registered when this application
134 | is started. However, feel free to register as many as you wish as
135 | the aliases are "lazy" loaded so they don't hinder performance.
139 // Class aliases, Registered on application start
143 'App' => Illuminate\Support\Facades\App::class,
144 'Arr' => Illuminate\Support\Arr::class,
145 'Artisan' => Illuminate\Support\Facades\Artisan::class,
146 'Auth' => Illuminate\Support\Facades\Auth::class,
147 'Blade' => Illuminate\Support\Facades\Blade::class,
148 'Bus' => Illuminate\Support\Facades\Bus::class,
149 'Cache' => Illuminate\Support\Facades\Cache::class,
150 'Config' => Illuminate\Support\Facades\Config::class,
151 'Cookie' => Illuminate\Support\Facades\Cookie::class,
152 'Crypt' => Illuminate\Support\Facades\Crypt::class,
153 'DB' => Illuminate\Support\Facades\DB::class,
154 'Eloquent' => Illuminate\Database\Eloquent\Model::class,
155 'Event' => Illuminate\Support\Facades\Event::class,
156 'File' => Illuminate\Support\Facades\File::class,
157 'Hash' => Illuminate\Support\Facades\Hash::class,
158 'Input' => Illuminate\Support\Facades\Input::class,
159 'Inspiring' => Illuminate\Foundation\Inspiring::class,
160 'Lang' => Illuminate\Support\Facades\Lang::class,
161 'Log' => Illuminate\Support\Facades\Log::class,
162 'Mail' => Illuminate\Support\Facades\Mail::class,
163 'Notification' => Illuminate\Support\Facades\Notification::class,
164 'Password' => Illuminate\Support\Facades\Password::class,
165 'Queue' => Illuminate\Support\Facades\Queue::class,
166 'Redirect' => Illuminate\Support\Facades\Redirect::class,
167 'Redis' => Illuminate\Support\Facades\Redis::class,
168 'Request' => Illuminate\Support\Facades\Request::class,
169 'Response' => Illuminate\Support\Facades\Response::class,
170 'Route' => Illuminate\Support\Facades\Route::class,
171 'Schema' => Illuminate\Support\Facades\Schema::class,
172 'Session' => Illuminate\Support\Facades\Session::class,
173 'Storage' => Illuminate\Support\Facades\Storage::class,
174 'Str' => Illuminate\Support\Str::class,
175 'URL' => Illuminate\Support\Facades\URL::class,
176 'Validator' => Illuminate\Support\Facades\Validator::class,
177 'View' => Illuminate\Support\Facades\View::class,
178 'Socialite' => Laravel\Socialite\Facades\Socialite::class,
181 'ImageTool' => Intervention\Image\Facades\Image::class,
182 'DomPDF' => Barryvdh\DomPDF\Facade::class,
183 'SnappyPDF' => Barryvdh\Snappy\Facades\SnappyPdf::class,
186 'Activity' => BookStack\Facades\Activity::class,
187 'Permissions' => BookStack\Facades\Permissions::class,
188 'Theme' => BookStack\Facades\Theme::class,
191 // Proxy configuration
192 'proxies' => env('APP_PROXIES', ''),