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