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 // Allow server-side fetches to be performed to potentially unknown
40 // and user-provided locations. Primarily used in exports when loading
41 // in externally referenced assets.
42 'allow_untrusted_server_fetching' => env('ALLOW_UNTRUSTED_SERVER_FETCHING', false),
44 // Override the default behaviour for allowing crawlers to crawl the instance.
45 // May be ignored if view has be overridden or modified.
46 // Defaults to null since, if not set, 'app-public' status used instead.
47 'allow_robots' => env('ALLOW_ROBOTS', null),
49 // Application Base URL, Used by laravel in development commands
50 // and used by BookStack in URL generation.
51 'url' => env('APP_URL', '') === 'http://bookstack.dev' ? '' : env('APP_URL', ''),
53 // A list of hosts that BookStack can be iframed within.
54 // Space separated if multiple. BookStack host domain is auto-inferred.
55 'iframe_hosts' => env('ALLOWED_IFRAME_HOSTS', null),
57 // Application timezone for back-end date functions.
58 'timezone' => env('APP_TIMEZONE', 'UTC'),
60 // Default locale to use
61 'locale' => env('APP_LANG', 'en'),
64 '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'],
66 // Application Fallback Locale
67 'fallback_locale' => 'en',
70 'faker_locale' => 'en_GB',
72 // Enable right-to-left text control.
75 // Auto-detect the locale for public users
76 // For public users their locale can be guessed by headers sent by their
77 // browser. This is usually set by users in their browser settings.
78 // If not found the default app locale will be used.
79 'auto_detect_locale' => env('APP_AUTO_LANG_PUBLIC', true),
82 'key' => env('APP_KEY', 'AbAZchsay4uBTU33RubBzLKw203yqSqr'),
85 'cipher' => 'AES-256-CBC',
87 // Application Services Provides
90 // Laravel Framework Service Providers...
91 Illuminate\Auth\AuthServiceProvider::class,
92 Illuminate\Broadcasting\BroadcastServiceProvider::class,
93 Illuminate\Bus\BusServiceProvider::class,
94 Illuminate\Cache\CacheServiceProvider::class,
95 Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class,
96 Illuminate\Cookie\CookieServiceProvider::class,
97 Illuminate\Database\DatabaseServiceProvider::class,
98 Illuminate\Encryption\EncryptionServiceProvider::class,
99 Illuminate\Filesystem\FilesystemServiceProvider::class,
100 Illuminate\Foundation\Providers\FoundationServiceProvider::class,
101 Illuminate\Hashing\HashServiceProvider::class,
102 Illuminate\Mail\MailServiceProvider::class,
103 Illuminate\Pipeline\PipelineServiceProvider::class,
104 Illuminate\Queue\QueueServiceProvider::class,
105 Illuminate\Redis\RedisServiceProvider::class,
106 Illuminate\Auth\Passwords\PasswordResetServiceProvider::class,
107 Illuminate\Session\SessionServiceProvider::class,
108 Illuminate\Validation\ValidationServiceProvider::class,
109 Illuminate\View\ViewServiceProvider::class,
110 Illuminate\Notifications\NotificationServiceProvider::class,
111 SocialiteProviders\Manager\ServiceProvider::class,
113 // Third party service providers
114 Intervention\Image\ImageServiceProvider::class,
115 Barryvdh\DomPDF\ServiceProvider::class,
116 Barryvdh\Snappy\ServiceProvider::class,
118 // BookStack replacement service providers (Extends Laravel)
119 BookStack\Providers\PaginationServiceProvider::class,
120 BookStack\Providers\TranslationServiceProvider::class,
122 // BookStack custom service providers
123 BookStack\Providers\ThemeServiceProvider::class,
124 BookStack\Providers\AuthServiceProvider::class,
125 BookStack\Providers\AppServiceProvider::class,
126 BookStack\Providers\BroadcastServiceProvider::class,
127 BookStack\Providers\EventServiceProvider::class,
128 BookStack\Providers\RouteServiceProvider::class,
129 BookStack\Providers\CustomFacadeProvider::class,
130 BookStack\Providers\CustomValidationServiceProvider::class,
134 |--------------------------------------------------------------------------
136 |--------------------------------------------------------------------------
138 | This array of class aliases will be registered when this application
139 | is started. However, feel free to register as many as you wish as
140 | the aliases are "lazy" loaded so they don't hinder performance.
144 // Class aliases, Registered on application start
147 'App' => Illuminate\Support\Facades\App::class,
148 'Arr' => Illuminate\Support\Arr::class,
149 'Artisan' => Illuminate\Support\Facades\Artisan::class,
150 'Auth' => Illuminate\Support\Facades\Auth::class,
151 'Blade' => Illuminate\Support\Facades\Blade::class,
152 'Bus' => Illuminate\Support\Facades\Bus::class,
153 'Cache' => Illuminate\Support\Facades\Cache::class,
154 'Config' => Illuminate\Support\Facades\Config::class,
155 'Cookie' => Illuminate\Support\Facades\Cookie::class,
156 'Crypt' => Illuminate\Support\Facades\Crypt::class,
157 'Date' => Illuminate\Support\Facades\Date::class,
158 'DB' => Illuminate\Support\Facades\DB::class,
159 'Eloquent' => Illuminate\Database\Eloquent\Model::class,
160 'Event' => Illuminate\Support\Facades\Event::class,
161 'File' => Illuminate\Support\Facades\File::class,
162 'Gate' => Illuminate\Support\Facades\Gate::class,
163 'Hash' => Illuminate\Support\Facades\Hash::class,
164 'Http' => Illuminate\Support\Facades\Http::class,
165 'Lang' => Illuminate\Support\Facades\Lang::class,
166 'Log' => Illuminate\Support\Facades\Log::class,
167 'Mail' => Illuminate\Support\Facades\Mail::class,
168 'Notification' => Illuminate\Support\Facades\Notification::class,
169 'Password' => Illuminate\Support\Facades\Password::class,
170 'Queue' => Illuminate\Support\Facades\Queue::class,
171 'RateLimiter' => Illuminate\Support\Facades\RateLimiter::class,
172 'Redirect' => Illuminate\Support\Facades\Redirect::class,
173 // 'Redis' => Illuminate\Support\Facades\Redis::class,
174 'Request' => Illuminate\Support\Facades\Request::class,
175 'Response' => Illuminate\Support\Facades\Response::class,
176 'Route' => Illuminate\Support\Facades\Route::class,
177 'Schema' => Illuminate\Support\Facades\Schema::class,
178 'Session' => Illuminate\Support\Facades\Session::class,
179 'Storage' => Illuminate\Support\Facades\Storage::class,
180 'Str' => Illuminate\Support\Str::class,
181 'URL' => Illuminate\Support\Facades\URL::class,
182 'Validator' => Illuminate\Support\Facades\Validator::class,
183 'View' => Illuminate\Support\Facades\View::class,
186 'Socialite' => Laravel\Socialite\Facades\Socialite::class,
189 'ImageTool' => Intervention\Image\Facades\Image::class,
190 'DomPDF' => Barryvdh\DomPDF\Facade::class,
191 'SnappyPDF' => Barryvdh\Snappy\Facades\SnappyPdf::class,
194 'Activity' => BookStack\Facades\Activity::class,
195 'Permissions' => BookStack\Facades\Permissions::class,
196 'Theme' => BookStack\Facades\Theme::class,
199 // Proxy configuration
200 'proxies' => env('APP_PROXIES', ''),