mirror of
https://github.com/YunoHost-Apps/agendav_ynh.git
synced 2024-09-03 20:36:12 +02:00
Update settings.php
This commit is contained in:
parent
6f8b717cc7
commit
a40da63784
1 changed files with 47 additions and 10 deletions
|
@ -2,8 +2,8 @@
|
||||||
/**
|
/**
|
||||||
* Site configuration
|
* Site configuration
|
||||||
*
|
*
|
||||||
* IMPORTANT: These are YunoHost defaults. Do not change this file, apply your
|
* IMPORTANT: These are AgenDAV defaults. Do not change this file, apply your
|
||||||
* changes to local.php.
|
* changes to settings.php
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Site title
|
// Site title
|
||||||
|
@ -12,6 +12,9 @@ $app['site.title'] = 'YunoHost Calendar';
|
||||||
// Site logo (should be placed in public/img). Optional
|
// Site logo (should be placed in public/img). Optional
|
||||||
$app['site.logo'] = 'agendav_100transp.png';
|
$app['site.logo'] = 'agendav_100transp.png';
|
||||||
|
|
||||||
|
// Site favicon (should be placed in public/img). Optional
|
||||||
|
$app['site.favicon'] = 'favicon.ico';
|
||||||
|
|
||||||
// Site footer. Optional
|
// Site footer. Optional
|
||||||
$app['site.footer'] = 'AgenDAV ' . \AgenDAV\Version::V;
|
$app['site.footer'] = 'AgenDAV ' . \AgenDAV\Version::V;
|
||||||
|
|
||||||
|
@ -33,21 +36,30 @@ $app['csrf.secret'] = '__ENCRYPTKEY__';
|
||||||
// Log path
|
// Log path
|
||||||
$app['log.path'] = '/var/log/__APP__/';
|
$app['log.path'] = '/var/log/__APP__/';
|
||||||
|
|
||||||
|
// Logging level
|
||||||
|
$app['log.level'] = 'INFO';
|
||||||
|
|
||||||
// Base URL
|
// Base URL
|
||||||
$app['caldav.baseurl'] = '__CALDAV_BASEURL__';
|
$app['caldav.baseurl'] = '__CALDAV_BASEURL__';
|
||||||
|
|
||||||
// Authentication method required by CalDAV server (basic or digest)
|
// Authentication method required by CalDAV server (basic or digest)
|
||||||
$app['caldav.authmethod'] = 'basic';
|
$app['caldav.authmethod'] = 'basic';
|
||||||
|
|
||||||
// Do not verify SSL certificate, it is self signed
|
|
||||||
$app['caldav.certificate.verify'] = false;
|
|
||||||
|
|
||||||
// Whether to show public CalDAV urls
|
// Whether to show public CalDAV urls
|
||||||
$app['caldav.publicurls'] = true;
|
$app['caldav.publicurls'] = true;
|
||||||
|
|
||||||
// Whether to show public CalDAV urls
|
// Whether to show public CalDAV urls
|
||||||
$app['caldav.baseurl.public'] = 'https://__CALDAV_DOMAIN__';
|
$app['caldav.baseurl.public'] = 'https://__CALDAV_DOMAIN__';
|
||||||
|
|
||||||
|
// Connection timeout for CalDAV requests (default: wait forever)
|
||||||
|
$app['caldav.connect.timeout'] = 0;
|
||||||
|
//
|
||||||
|
// Response timeout for CalDAV requests (default: wait forever)
|
||||||
|
$app['caldav.response.timeout'] = 0;
|
||||||
|
|
||||||
|
// Whether to verify the SSL certificate (default: true)
|
||||||
|
$app['caldav.certificate.verify'] = false;
|
||||||
|
|
||||||
// Email attribute name
|
// Email attribute name
|
||||||
$app['principal.email.attribute'] = '{DAV:}email';
|
$app['principal.email.attribute'] = '{DAV:}email';
|
||||||
|
|
||||||
|
@ -57,10 +69,23 @@ $app['calendar.sharing'] = false;
|
||||||
// Calendar sharing permissions. In case of doubt, do not modify them
|
// Calendar sharing permissions. In case of doubt, do not modify them
|
||||||
// These defaults are only useful for DAViCal (http://wiki.davical.org/index.php/Permissions)
|
// These defaults are only useful for DAViCal (http://wiki.davical.org/index.php/Permissions)
|
||||||
$app['calendar.sharing.permissions'] = [
|
$app['calendar.sharing.permissions'] = [
|
||||||
'owner' => ['{DAV:}all'],
|
'owner' => [
|
||||||
'read-only' => ['{DAV:}read', '{urn:ietf:params:xml:ns:caldav}read-free-busy'],
|
'{DAV:}all',
|
||||||
'read-write' => ['{DAV:}read', '{DAV:}write', '{urn:ietf:params:xml:ns:caldav}read-free-busy'],
|
'{DAV:}read',
|
||||||
'default' => ['{urn:ietf:params:xml:ns:caldav}read-free-busy']
|
'{DAV:}unlock',
|
||||||
|
'{DAV:}read-acl',
|
||||||
|
'{DAV:}read-current-user-privilege-set',
|
||||||
|
'{DAV:}write-acl',
|
||||||
|
'{urn:ietf:params:xml:ns:caldav}read-free-busy',
|
||||||
|
'{DAV:}write',
|
||||||
|
'{DAV:}write-properties',
|
||||||
|
'{DAV:}write-content',
|
||||||
|
'{DAV:}bind',
|
||||||
|
'{DAV:}unbind'
|
||||||
|
],
|
||||||
|
'read-only' => [ '{DAV:}read', '{urn:ietf:params:xml:ns:caldav}read-free-busy'],
|
||||||
|
'read-write' => [ '{DAV:}read', '{DAV:}write', '{urn:ietf:params:xml:ns:caldav}read-free-busy' ],
|
||||||
|
'default' => [ '{urn:ietf:params:xml:ns:caldav}read-free-busy' ]
|
||||||
];
|
];
|
||||||
|
|
||||||
// Default timezone
|
// Default timezone
|
||||||
|
@ -84,6 +109,18 @@ $app['defaults.date_format'] = 'ymd';
|
||||||
// Default first day of week. Options: 0 (Sunday), 1 (Monday)
|
// Default first day of week. Options: 0 (Sunday), 1 (Monday)
|
||||||
$app['defaults.weekstart'] = 0;
|
$app['defaults.weekstart'] = 0;
|
||||||
|
|
||||||
|
// Default for showing the week numbers. Options: true/false
|
||||||
|
$app['defaults.show_week_nb'] = false;
|
||||||
|
|
||||||
|
// Default for showing the "now" indicator, a line on current time. Options: true/false
|
||||||
|
$app['defaults.show_now_indicator'] = true;
|
||||||
|
//
|
||||||
|
// Default number of days covered by the "list" (agenda) view. Allowed values: 7, 14 or 31
|
||||||
|
$app['defaults.list_days'] = 7;
|
||||||
|
|
||||||
|
// Default view (month, week, day or list)
|
||||||
|
$app['defaults.default_view'] = 'month';
|
||||||
|
|
||||||
// Logout redirection. Optional
|
// Logout redirection. Optional
|
||||||
$main_domain = exec('cat /etc/yunohost/current_host');
|
$main_domain = exec('cat /etc/yunohost/current_host');
|
||||||
$app['logout.redirection'] = 'https://' . $main_domain . '/yunohost/sso/?action=logout';
|
$app['logout.redirection'] = 'https://' . $main_domain . '/yunohost/sso/?action=logout';
|
||||||
|
@ -123,7 +160,7 @@ $app['calendar.colors'] = [
|
||||||
* Local configuration
|
* Local configuration
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$local_config = __DIR__ . '/local.php';
|
$local_config = '__FINALPATH__/web/config/local.php';
|
||||||
if (file_exists($local_config)) {
|
if (file_exists($local_config)) {
|
||||||
require $local_config;
|
require $local_config;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue