]> BookStack Code Mirror - bookstack/blob - config/app.php
Updated Swedish translation
[bookstack] / config / app.php
1 <?php
2
3 return [
4
5     'env' => env('APP_ENV', 'production'),
6
7     /**
8      * Set the default view type for various lists. Can be overridden by user preferences.
9      * This will be used for public viewers and users that have not set a preference.
10      */
11     'views' => [
12         'books' => env('APP_VIEWS_BOOKS', 'list')
13     ],
14
15     /**
16      * Allow <script> tags to entered within page content.
17      * <script> tags are escaped by default.
18      * Even when overridden the WYSIWYG editor may still escape script content.
19      */
20     'allow_content_scripts' => env('ALLOW_CONTENT_SCRIPTS', false),
21
22     /**
23      * Override the default behaviour for allowing crawlers to crawl the instance.
24      * May be ignored if view has be overridden or modified.
25      * Defaults to null since, if not set, 'app-public' status used instead.
26      */
27     'allow_robots' => env('ALLOW_ROBOTS', null),
28
29     /*
30     |--------------------------------------------------------------------------
31     | Application Debug Mode
32     |--------------------------------------------------------------------------
33     |
34     | When your application is in debug mode, detailed error messages with
35     | stack traces will be shown on every error that occurs within your
36     | application. If disabled, a simple generic error page is shown.
37     |
38     */
39
40     'debug' => env('APP_DEBUG', false),
41
42     /*
43     |--------------------------------------------------------------------------
44     | Application URL
45     |--------------------------------------------------------------------------
46     |
47     | This URL is used by the console to properly generate URLs when using
48     | the Artisan command line tool. You should set this to the root of
49     | your application so that it is used when running Artisan tasks.
50     |
51     */
52
53     'url' => env('APP_URL', '') === 'http://bookstack.dev' ? '' : env('APP_URL', ''),
54
55     /*
56     |--------------------------------------------------------------------------
57     | Application Timezone
58     |--------------------------------------------------------------------------
59     |
60     | Here you may specify the default timezone for your application, which
61     | will be used by the PHP date and date-time functions. We have gone
62     | ahead and set this to a sensible default for you out of the box.
63     |
64     */
65
66     'timezone' => 'UTC',
67
68     /*
69     |--------------------------------------------------------------------------
70     | Application Locale Configuration
71     |--------------------------------------------------------------------------
72     |
73     | The application locale determines the default locale that will be used
74     | by the translation service provider. You are free to set this value
75     | to any of the locales which will be supported by the application.
76     |
77     */
78
79     'locale' => env('APP_LANG', 'en'),
80     'locales' => ['en', 'de', 'es', 'es_AR', 'fr', 'nl', 'pt_BR', 'sk', 'sv', 'ja', 'pl', 'it', 'ru', 'zh_CN', 'zh_TW'],
81
82     /*
83     |--------------------------------------------------------------------------
84     | Application Fallback Locale
85     |--------------------------------------------------------------------------
86     |
87     | The fallback locale determines the locale to use when the current one
88     | is not available. You may change the value to correspond to any of
89     | the language folders that are provided through your application.
90     |
91     */
92
93     'fallback_locale' => 'en',
94
95     /*
96     |--------------------------------------------------------------------------
97     | Encryption Key
98     |--------------------------------------------------------------------------
99     |
100     | This key is used by the Illuminate encrypter service and should be set
101     | to a random, 32 character string, otherwise these encrypted strings
102     | will not be safe. Please do this before deploying an application!
103     |
104     */
105
106     'key' => env('APP_KEY', 'AbAZchsay4uBTU33RubBzLKw203yqSqr'),
107
108     'cipher' => 'AES-256-CBC',
109
110     /*
111     |--------------------------------------------------------------------------
112     | Logging Configuration
113     |--------------------------------------------------------------------------
114     |
115     | Here you may configure the log settings for your application. Out of
116     | the box, Laravel uses the Monolog PHP logging library. This gives
117     | you a variety of powerful log handlers / formatters to utilize.
118     |
119     | Available Settings: "single", "daily", "syslog", "errorlog"
120     |
121     */
122
123     'log' => env('APP_LOGGING', 'single'),
124
125     /*
126     |--------------------------------------------------------------------------
127     | Autoloaded Service Providers
128     |--------------------------------------------------------------------------
129     |
130     | The service providers listed here will be automatically loaded on the
131     | request to your application. Feel free to add your own services to
132     | this array to grant expanded functionality to your applications.
133     |
134     */
135
136     'providers' => [
137
138         /*
139          * Laravel Framework Service Providers...
140          */
141         Illuminate\Auth\AuthServiceProvider::class,
142         Illuminate\Broadcasting\BroadcastServiceProvider::class,
143         Illuminate\Bus\BusServiceProvider::class,
144         Illuminate\Cache\CacheServiceProvider::class,
145         Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class,
146         Illuminate\Cookie\CookieServiceProvider::class,
147         Illuminate\Database\DatabaseServiceProvider::class,
148         Illuminate\Encryption\EncryptionServiceProvider::class,
149         Illuminate\Filesystem\FilesystemServiceProvider::class,
150         Illuminate\Foundation\Providers\FoundationServiceProvider::class,
151         Illuminate\Hashing\HashServiceProvider::class,
152         Illuminate\Mail\MailServiceProvider::class,
153         Illuminate\Pipeline\PipelineServiceProvider::class,
154         Illuminate\Queue\QueueServiceProvider::class,
155         Illuminate\Redis\RedisServiceProvider::class,
156         Illuminate\Auth\Passwords\PasswordResetServiceProvider::class,
157         Illuminate\Session\SessionServiceProvider::class,
158         Illuminate\Translation\TranslationServiceProvider::class,
159         Illuminate\Validation\ValidationServiceProvider::class,
160         Illuminate\View\ViewServiceProvider::class,
161         Illuminate\Notifications\NotificationServiceProvider::class,
162         SocialiteProviders\Manager\ServiceProvider::class,
163
164         /**
165          * Third Party
166          */
167         Intervention\Image\ImageServiceProvider::class,
168         Barryvdh\DomPDF\ServiceProvider::class,
169         Barryvdh\Snappy\ServiceProvider::class,
170
171
172         /*
173          * Application Service Providers...
174          */
175         BookStack\Providers\PaginationServiceProvider::class,
176
177         BookStack\Providers\AuthServiceProvider::class,
178         BookStack\Providers\AppServiceProvider::class,
179         BookStack\Providers\BroadcastServiceProvider::class,
180         BookStack\Providers\EventServiceProvider::class,
181         BookStack\Providers\RouteServiceProvider::class,
182         BookStack\Providers\CustomFacadeProvider::class,
183     ],
184
185     /*
186     |--------------------------------------------------------------------------
187     | Class Aliases
188     |--------------------------------------------------------------------------
189     |
190     | This array of class aliases will be registered when this application
191     | is started. However, feel free to register as many as you wish as
192     | the aliases are "lazy" loaded so they don't hinder performance.
193     |
194     */
195
196     'aliases' => [
197
198         'App'       => Illuminate\Support\Facades\App::class,
199         'Artisan'   => Illuminate\Support\Facades\Artisan::class,
200         'Auth'      => Illuminate\Support\Facades\Auth::class,
201         'Blade'     => Illuminate\Support\Facades\Blade::class,
202         'Bus'       => Illuminate\Support\Facades\Bus::class,
203         'Cache'     => Illuminate\Support\Facades\Cache::class,
204         'Config'    => Illuminate\Support\Facades\Config::class,
205         'Cookie'    => Illuminate\Support\Facades\Cookie::class,
206         'Crypt'     => Illuminate\Support\Facades\Crypt::class,
207         'DB'        => Illuminate\Support\Facades\DB::class,
208         'Eloquent'  => Illuminate\Database\Eloquent\Model::class,
209         'Event'     => Illuminate\Support\Facades\Event::class,
210         'File'      => Illuminate\Support\Facades\File::class,
211         'Hash'      => Illuminate\Support\Facades\Hash::class,
212         'Input'     => Illuminate\Support\Facades\Input::class,
213         'Inspiring' => Illuminate\Foundation\Inspiring::class,
214         'Lang'      => Illuminate\Support\Facades\Lang::class,
215         'Log'       => Illuminate\Support\Facades\Log::class,
216         'Mail'      => Illuminate\Support\Facades\Mail::class,
217         'Notification' => Illuminate\Support\Facades\Notification::class,
218         'Password'  => Illuminate\Support\Facades\Password::class,
219         'Queue'     => Illuminate\Support\Facades\Queue::class,
220         'Redirect'  => Illuminate\Support\Facades\Redirect::class,
221         'Redis'     => Illuminate\Support\Facades\Redis::class,
222         'Request'   => Illuminate\Support\Facades\Request::class,
223         'Response'  => Illuminate\Support\Facades\Response::class,
224         'Route'     => Illuminate\Support\Facades\Route::class,
225         'Schema'    => Illuminate\Support\Facades\Schema::class,
226         'Session'   => Illuminate\Support\Facades\Session::class,
227         'Storage'   => Illuminate\Support\Facades\Storage::class,
228         'URL'       => Illuminate\Support\Facades\URL::class,
229         'Validator' => Illuminate\Support\Facades\Validator::class,
230         'View'      => Illuminate\Support\Facades\View::class,
231         'Socialite' => Laravel\Socialite\Facades\Socialite::class,
232
233         /**
234          * Third Party
235          */
236
237         'ImageTool' => Intervention\Image\Facades\Image::class,
238         'DomPDF' => Barryvdh\DomPDF\Facade::class,
239         'SnappyPDF' => Barryvdh\Snappy\Facades\SnappyPdf::class,
240
241         /**
242          * Custom
243          */
244
245         'Activity' => BookStack\Services\Facades\Activity::class,
246         'Setting'  => BookStack\Services\Facades\Setting::class,
247         'Views'    => BookStack\Services\Facades\Views::class,
248         'Images'   => \BookStack\Services\Facades\Images::class,
249
250     ],
251
252     'proxies' => env('APP_PROXIES', ''),
253
254 ];
Morty Proxy This is a proxified and sanitized view of the page, visit original site.