This repository has been archived by the owner on Feb 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 42
/
Copy pathconfig.js
96 lines (86 loc) · 3.15 KB
/
config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
/*-----------------------------------------------------------------------------
**
** - Fennel Card-/CalDAV -
**
** Copyright 2014-17 by
** SwordLord - the coding crew - http://www.swordlord.com
** and contributing authors
**
** This program is free software; you can redistribute it and/or modify it
** under the terms of the GNU Affero General Public License as published by the
** Free Software Foundation, either version 3 of the License, or (at your
** option) any later version.
**
** This program is distributed in the hope that it will be useful, but WITHOUT
** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
** FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for
** more details.
**
** You should have received a copy of the GNU Affero General Public License
** along with this program. If not, see <http://www.gnu.org/licenses/>.
**
**-----------------------------------------------------------------------------
**
** Original Authors:
**
** $Id:
**
-----------------------------------------------------------------------------*/
// Place all your configuration options here
var config =
{
version_nr: '0.1.0',
// Server specific configuration
// Please use a proxy in front of Fennel to support TLS.
// We suggest you use nginx as the TLS endpoint
port: 8888,
//port: 80,
ip: '127.0.0.1',
//ip: '0.0.0.0',
// db specific configuration. you can use whatever sequelize supports.
db_name: 'fennel',
db_uid: 'uid',
db_pwd: 'pwd',
db_dialect: 'sqlite',
db_logging: true,
db_storage: 'fennel.sqlite',
// db_host: 'localhost', // For myql, postgres etc.
// Authentication
// Authentication methods so far: courier, htaccess, ldap
auth_method: 'htaccess',
auth_method_courier_socket: '/var/run/courier/authdaemon/socket',
auth_method_htaccess_file: 'demouser.htaccess',
// ldap authentication requires the [email protected] node module. Please install manually
auth_method_ldap_url: 'ldap://localhost:3002',
auth_method_ldap_user_base_dn: 'ou=users,dc=example',
// Authorisation
// Authorisation Rules:
// This property takes an array of Shiro formatted strings. Users are
// only permitted access to resources when said access is explicitly
// allowed here. Please see http://shiro.apache.org/permissions.html
// for a short introduction to Shiro Syntax.
//
// Fennel uses the URL + the function to check for authorisation.
// /card/demo/default/card_id.vcf with method PUT will become
// card:demo:default:card_id.vcf:put
//
// Please note that $username is not recognised by shiro-trie but
// will be replaced by Fennel with the current user when loaded into
// the current process.
//
// The current set will allow the owner to access his or her own stuff
authorisation: [
'cal:$username:*',
'card:$username:*',
'p:options,report,propfind',
'p:$username:*'
],
test_user_name: 'demo',
test_user_pwd: 'demo'
};
// Exporting.
module.exports = {
config: config
};