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 // The limit for all uploaded files, including images and attachments in MB.
35 'upload_limit' => env('FILE_UPLOAD_SIZE_LIMIT', 50),
37 // Allow <script> tags to entered within page content.
38 // <script> tags are escaped by default.
39 // Even when overridden the WYSIWYG editor may still escape script content.
40 'allow_content_scripts' => env('ALLOW_CONTENT_SCRIPTS', false),
42 // Allow server-side fetches to be performed to potentially unknown
43 // and user-provided locations. Primarily used in exports when loading
44 // in externally referenced assets.
45 'allow_untrusted_server_fetching' => env('ALLOW_UNTRUSTED_SERVER_FETCHING', false),
47 // Override the default behaviour for allowing crawlers to crawl the instance.
48 // May be ignored if view has be overridden or modified.
49 // Defaults to null since, if not set, 'app-public' status used instead.
50 'allow_robots' => env('ALLOW_ROBOTS', null),
52 // Application Base URL, Used by laravel in development commands
53 // and used by BookStack in URL generation.
54 'url' => env('APP_URL', '') === 'http://bookstack.dev' ? '' : env('APP_URL', ''),
56 // A list of hosts that BookStack can be iframed within.
57 // Space separated if multiple. BookStack host domain is auto-inferred.
58 'iframe_hosts' => env('ALLOWED_IFRAME_HOSTS', null),
60 // A list of sources/hostnames that can be loaded within iframes within BookStack.
61 // Space separated if multiple. BookStack host domain is auto-inferred.
62 // Can be set to a lone "*" to allow all sources for iframe content (Not advised).
63 // Defaults to a set of common services.
64 // Current host and source for the "DRAWIO" setting will be auto-appended to the sources configured.
65 'iframe_sources' => env('ALLOWED_IFRAME_SOURCES', 'https://*.draw.io https://*.youtube.com https://*.youtube-nocookie.com https://*.vimeo.com'),
67 // Application timezone for back-end date functions.
68 'timezone' => env('APP_TIMEZONE', 'UTC'),
70 // Default locale to use
71 'locale' => env('APP_LANG', 'en'),
74 'locales' => ['en', 'ar', 'bg', 'bs', 'ca', 'cs', 'da', 'de', 'de_informal', 'es', 'es_AR', 'et', 'fa', 'fr', 'he', 'hr', 'hu', 'id', 'it', 'ja', 'ko', 'lt', 'lv', 'nl', 'nb', 'pt', 'pt_BR', 'sk', 'sl', 'sv', 'pl', 'ru', 'th', 'tr', 'uk', 'vi', 'zh_CN', 'zh_TW'],
76 // Application Fallback Locale
77 'fallback_locale' => 'en',
80 'faker_locale' => 'en_GB',
82 // Enable right-to-left text control.
85 // Auto-detect the locale for public users
86 // For public users their locale can be guessed by headers sent by their
87 // browser. This is usually set by users in their browser settings.
88 // If not found the default app locale will be used.
89 'auto_detect_locale' => env('APP_AUTO_LANG_PUBLIC', true),
92 'key' => env('APP_KEY', 'AbAZchsay4uBTU33RubBzLKw203yqSqr'),
95 'cipher' => 'AES-256-CBC',
97 // Application Services Provides
100 // Laravel Framework Service Providers...
101 Illuminate\Auth\AuthServiceProvider::class,
102 Illuminate\Broadcasting\BroadcastServiceProvider::class,
103 Illuminate\Bus\BusServiceProvider::class,
104 Illuminate\Cache\CacheServiceProvider::class,
105 Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class,
106 Illuminate\Cookie\CookieServiceProvider::class,
107 Illuminate\Database\DatabaseServiceProvider::class,
108 Illuminate\Encryption\EncryptionServiceProvider::class,
109 Illuminate\Filesystem\FilesystemServiceProvider::class,
110 Illuminate\Foundation\Providers\FoundationServiceProvider::class,
111 Illuminate\Hashing\HashServiceProvider::class,
112 Illuminate\Mail\MailServiceProvider::class,
113 Illuminate\Pipeline\PipelineServiceProvider::class,
114 Illuminate\Queue\QueueServiceProvider::class,
115 Illuminate\Redis\RedisServiceProvider::class,
116 Illuminate\Auth\Passwords\PasswordResetServiceProvider::class,
117 Illuminate\Session\SessionServiceProvider::class,
118 Illuminate\Validation\ValidationServiceProvider::class,
119 Illuminate\View\ViewServiceProvider::class,
120 Illuminate\Notifications\NotificationServiceProvider::class,
121 SocialiteProviders\Manager\ServiceProvider::class,
123 // Third party service providers
124 Intervention\Image\ImageServiceProvider::class,
125 Barryvdh\DomPDF\ServiceProvider::class,
126 Barryvdh\Snappy\ServiceProvider::class,
128 // BookStack replacement service providers (Extends Laravel)
129 BookStack\Providers\PaginationServiceProvider::class,
130 BookStack\Providers\TranslationServiceProvider::class,
132 // BookStack custom service providers
133 BookStack\Providers\ThemeServiceProvider::class,
134 BookStack\Providers\AuthServiceProvider::class,
135 BookStack\Providers\AppServiceProvider::class,
136 BookStack\Providers\BroadcastServiceProvider::class,
137 BookStack\Providers\EventServiceProvider::class,
138 BookStack\Providers\RouteServiceProvider::class,
139 BookStack\Providers\CustomFacadeProvider::class,
140 BookStack\Providers\CustomValidationServiceProvider::class,
144 |--------------------------------------------------------------------------
146 |--------------------------------------------------------------------------
148 | This array of class aliases will be registered when this application
149 | is started. However, feel free to register as many as you wish as
150 | the aliases are "lazy" loaded so they don't hinder performance.
154 // Class aliases, Registered on application start
157 'App' => Illuminate\Support\Facades\App::class,
158 'Arr' => Illuminate\Support\Arr::class,
159 'Artisan' => Illuminate\Support\Facades\Artisan::class,
160 'Auth' => Illuminate\Support\Facades\Auth::class,
161 'Blade' => Illuminate\Support\Facades\Blade::class,
162 'Bus' => Illuminate\Support\Facades\Bus::class,
163 'Cache' => Illuminate\Support\Facades\Cache::class,
164 'Config' => Illuminate\Support\Facades\Config::class,
165 'Cookie' => Illuminate\Support\Facades\Cookie::class,
166 'Crypt' => Illuminate\Support\Facades\Crypt::class,
167 'Date' => Illuminate\Support\Facades\Date::class,
168 'DB' => Illuminate\Support\Facades\DB::class,
169 'Eloquent' => Illuminate\Database\Eloquent\Model::class,
170 'Event' => Illuminate\Support\Facades\Event::class,
171 'File' => Illuminate\Support\Facades\File::class,
172 'Gate' => Illuminate\Support\Facades\Gate::class,
173 'Hash' => Illuminate\Support\Facades\Hash::class,
174 'Http' => Illuminate\Support\Facades\Http::class,
175 'Lang' => Illuminate\Support\Facades\Lang::class,
176 'Log' => Illuminate\Support\Facades\Log::class,
177 'Mail' => Illuminate\Support\Facades\Mail::class,
178 'Notification' => Illuminate\Support\Facades\Notification::class,
179 'Password' => Illuminate\Support\Facades\Password::class,
180 'Queue' => Illuminate\Support\Facades\Queue::class,
181 'RateLimiter' => Illuminate\Support\Facades\RateLimiter::class,
182 'Redirect' => Illuminate\Support\Facades\Redirect::class,
183 // 'Redis' => Illuminate\Support\Facades\Redis::class,
184 'Request' => Illuminate\Support\Facades\Request::class,
185 'Response' => Illuminate\Support\Facades\Response::class,
186 'Route' => Illuminate\Support\Facades\Route::class,
187 'Schema' => Illuminate\Support\Facades\Schema::class,
188 'Session' => Illuminate\Support\Facades\Session::class,
189 'Storage' => Illuminate\Support\Facades\Storage::class,
190 'Str' => Illuminate\Support\Str::class,
191 'URL' => Illuminate\Support\Facades\URL::class,
192 'Validator' => Illuminate\Support\Facades\Validator::class,
193 'View' => Illuminate\Support\Facades\View::class,
196 'Socialite' => Laravel\Socialite\Facades\Socialite::class,
199 'ImageTool' => Intervention\Image\Facades\Image::class,
200 'DomPDF' => Barryvdh\DomPDF\Facade::class,
201 'SnappyPDF' => Barryvdh\Snappy\Facades\SnappyPdf::class,
204 'Activity' => BookStack\Facades\Activity::class,
205 'Permissions' => BookStack\Facades\Permissions::class,
206 'Theme' => BookStack\Facades\Theme::class,
209 // Proxy configuration
210 'proxies' => env('APP_PROXIES', ''),