Files
monica/config/laravelsabre.php
2019-05-05 01:09:17 +02:00

73 lines
2.2 KiB
PHP

<?php
use LaravelSabre\Http\Middleware\Authorize;
return [
/*
|--------------------------------------------------------------------------
| LaravelSabre Domain
|--------------------------------------------------------------------------
|
| This is the subdomain where LaravelSabre will be accessible from. If the
| setting is null, LaravelSabre will reside under the same domain as the
| application. Otherwise, this value will be used as the subdomain.
|
*/
'domain' => null,
/*
|--------------------------------------------------------------------------
| LaravelSabre Path
|--------------------------------------------------------------------------
|
| This is the URI path where LaravelSabre will be accessible from. Feel free
| to change this path to anything you like.
|
*/
'path' => 'dav',
/*
|--------------------------------------------------------------------------
| LaravelSabre Master Switch
|--------------------------------------------------------------------------
|
| This option may be used to disable LaravelSabre.
|
*/
'enabled' => (bool) env('DAV_ENABLED', (bool) env('CARDDAV_ENABLED', false)),
/*
|--------------------------------------------------------------------------
| LaravelSabre Route Middleware
|--------------------------------------------------------------------------
|
| These middleware will be assigned to every LaravelSabre route, giving you
| the chance to add your own middleware to this list or change any of
| the existing middleware. Or, you can simply stick with this list.
|
*/
'middleware' => [
'api',
'auth.tokenonbasic',
'limitations',
Authorize::class,
],
/*
|--------------------------------------------------------------------------
| Enable access only to these users
|--------------------------------------------------------------------------
|
| A comma-separated list of user's email to enable dav for.
| If null or empty, there will be no restriction.
|
*/
'users' => env('DAV_USERS', null),
];