]> BookStack Code Mirror - bookstack/blob - app/Config/app.php
Merge branch 'master' of git://github.com/Swoy/BookStack into Swoy-master
[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     // A list of hosts that BookStack can be iframed within.
56     // Space separated if multiple. BookStack host domain is auto-inferred.
57     'iframe_hosts' => env('ALLOWED_IFRAME_HOSTS', null),
58
59     // Application timezone for back-end date functions.
60     'timezone' => env('APP_TIMEZONE', 'UTC'),
61
62     // Default locale to use
63     'locale' => env('APP_LANG', 'en'),
64
65     // Locales available
66     'locales' => ['en', 'ar', 'bg', 'cs', 'da', 'de', 'de_informal', 'es', 'es_AR', 'fa', 'fr', 'he', 'hu', 'it', 'ja', 'ko', 'nl', 'no_NB', 'pt', 'pt_BR', 'sk', 'sl', 'sv', 'pl',  'ru', 'th', 'tr', 'uk', 'vi', 'zh_CN', 'zh_TW',],
67
68     //  Application Fallback Locale
69     'fallback_locale' => 'en',
70
71     // Faker Locale
72     'faker_locale' => 'en_GB',
73
74     // Enable right-to-left text control.
75     'rtl' => false,
76
77     // Auto-detect the locale for public users
78     // For public users their locale can be guessed by headers sent by their
79     // browser. This is usually set by users in their browser settings.
80     // If not found the default app locale will be used.
81     'auto_detect_locale' => env('APP_AUTO_LANG_PUBLIC', true),
82
83     // Encryption key
84     'key' => env('APP_KEY', 'AbAZchsay4uBTU33RubBzLKw203yqSqr'),
85
86     // Encryption cipher
87     'cipher' => 'AES-256-CBC',
88
89     // Application Services Provides
90     'providers' => [
91
92         // Laravel Framework Service Providers...
93         Illuminate\Auth\AuthServiceProvider::class,
94         Illuminate\Broadcasting\BroadcastServiceProvider::class,
95         Illuminate\Bus\BusServiceProvider::class,
96         Illuminate\Cache\CacheServiceProvider::class,
97         Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class,
98         Illuminate\Cookie\CookieServiceProvider::class,
99         Illuminate\Database\DatabaseServiceProvider::class,
100         Illuminate\Encryption\EncryptionServiceProvider::class,
101         Illuminate\Filesystem\FilesystemServiceProvider::class,
102         Illuminate\Foundation\Providers\FoundationServiceProvider::class,
103         Illuminate\Hashing\HashServiceProvider::class,
104         Illuminate\Mail\MailServiceProvider::class,
105         Illuminate\Pipeline\PipelineServiceProvider::class,
106         Illuminate\Queue\QueueServiceProvider::class,
107         Illuminate\Redis\RedisServiceProvider::class,
108         Illuminate\Auth\Passwords\PasswordResetServiceProvider::class,
109         Illuminate\Session\SessionServiceProvider::class,
110         Illuminate\Validation\ValidationServiceProvider::class,
111         Illuminate\View\ViewServiceProvider::class,
112         Illuminate\Notifications\NotificationServiceProvider::class,
113         SocialiteProviders\Manager\ServiceProvider::class,
114
115         // Third party service providers
116         Intervention\Image\ImageServiceProvider::class,
117         Barryvdh\DomPDF\ServiceProvider::class,
118         Barryvdh\Snappy\ServiceProvider::class,
119
120         // BookStack replacement service providers (Extends Laravel)
121         BookStack\Providers\PaginationServiceProvider::class,
122         BookStack\Providers\TranslationServiceProvider::class,
123
124         // BookStack custom service providers
125         BookStack\Providers\AuthServiceProvider::class,
126         BookStack\Providers\AppServiceProvider::class,
127         BookStack\Providers\BroadcastServiceProvider::class,
128         BookStack\Providers\EventServiceProvider::class,
129         BookStack\Providers\RouteServiceProvider::class,
130         BookStack\Providers\CustomFacadeProvider::class,
131         BookStack\Providers\CustomValidationServiceProvider::class,
132     ],
133
134     /*
135     |--------------------------------------------------------------------------
136     | Class Aliases
137     |--------------------------------------------------------------------------
138     |
139     | This array of class aliases will be registered when this application
140     | is started. However, feel free to register as many as you wish as
141     | the aliases are "lazy" loaded so they don't hinder performance.
142     |
143     */
144
145     // Class aliases, Registered on application start
146     'aliases' => [
147
148         // Laravel
149         'App'       => Illuminate\Support\Facades\App::class,
150         'Arr'       => Illuminate\Support\Arr::class,
151         'Artisan'   => Illuminate\Support\Facades\Artisan::class,
152         'Auth'      => Illuminate\Support\Facades\Auth::class,
153         'Blade'     => Illuminate\Support\Facades\Blade::class,
154         'Bus'       => Illuminate\Support\Facades\Bus::class,
155         'Cache'     => Illuminate\Support\Facades\Cache::class,
156         'Config'    => Illuminate\Support\Facades\Config::class,
157         'Cookie'    => Illuminate\Support\Facades\Cookie::class,
158         'Crypt'     => Illuminate\Support\Facades\Crypt::class,
159         'DB'        => Illuminate\Support\Facades\DB::class,
160         'Eloquent'  => Illuminate\Database\Eloquent\Model::class,
161         'Event'     => Illuminate\Support\Facades\Event::class,
162         'File'      => Illuminate\Support\Facades\File::class,
163         'Hash'      => Illuminate\Support\Facades\Hash::class,
164         'Input'     => Illuminate\Support\Facades\Input::class,
165         'Inspiring' => Illuminate\Foundation\Inspiring::class,
166         'Lang'      => Illuminate\Support\Facades\Lang::class,
167         'Log'       => Illuminate\Support\Facades\Log::class,
168         'Mail'      => Illuminate\Support\Facades\Mail::class,
169         'Notification' => Illuminate\Support\Facades\Notification::class,
170         'Password'  => Illuminate\Support\Facades\Password::class,
171         'Queue'     => Illuminate\Support\Facades\Queue::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,
184         'Socialite' => Laravel\Socialite\Facades\Socialite::class,
185
186         // Third Party
187         'ImageTool' => Intervention\Image\Facades\Image::class,
188         'DomPDF' => Barryvdh\DomPDF\Facade::class,
189         'SnappyPDF' => Barryvdh\Snappy\Facades\SnappyPdf::class,
190
191         // Custom BookStack
192         'Activity' => BookStack\Facades\Activity::class,
193         'Setting'  => BookStack\Facades\Setting::class,
194         'Views'    => BookStack\Facades\Views::class,
195         'Images'   => BookStack\Facades\Images::class,
196         'Permissions' => BookStack\Facades\Permissions::class,
197
198     ],
199
200     // Proxy configuration
201     'proxies' => env('APP_PROXIES', ''),
202
203 ];