This repository has been archived by the owner on Oct 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
/
defaults.properties
205 lines (113 loc) · 5.46 KB
/
defaults.properties
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
#
# Copyright (c) 2011, Thilo Planz. All rights reserved.
#
# 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/>.
#
## global settings
# HTTP port
http.port = 8080
# Log4j
# A1 and V7 are built-in appenders that log to stdout
# v7files itself logs to V7, the libraries it uses log to A1
# if you want to configure something else, please define a new appender
log4j.rootLogger=INFO, A1
log4j.logger.v7db.files=INFO, V7
# Passwords and roles for the "demo" authentication provider
# If enabled (see "auth.provider"), defines the passwords and roles
# for the user who can authenticate
# (disabled by default, useful mostly for testing and demonstration)
auth.demo.user.admin.password = admin
auth.demo.user.admin.roles = admins, users
auth.demo.user.demo.password = demo
auth.demo.user.demo.roles = users
## endpoint definitions
# WebDAV Endpoints: URL prefixes that get mapped into WebDAV folder hierarchies
# You can have multiple endpoints, separated by comma (e.g. "/one, /two")
webdav.endpoints = /
# By default, every endpoint URL prefix is used as the file id for
# the root folder in the V7Files filesystem for that endpoint
# for example, if your endpoint is "/webdav", a URL "/webdav/test.txt" would
# map to the file called "test.txt" under the folder "/webdav".
# With the following setting, you can change this root file id
# for every endpoint:
# /webdav.root = /x
## per-endpoint settings
# These settings can be configured with a different setting for each endpoint.
# If no per-endpoint setting is done, it defaults back to a global setting
# To set a per-endpoint configuration, prefix the key with "[endpointPrefix]."
# for example "mongo.db" becomes "/webdav.mongo.db"
# How to connect to the database server (or cluster)
db.uri = mongodb://0.0.0.0:27017
# MongoDB database name
mongo.db = test
# HTTP Authentication Security Realm
auth.realm = V7Files
# WebDAV locking
# proper locking is not (yet) implemented, but the OS X Finder wants to have it,
# otherwise it will only mount the share read-only
# you can enable "fake" locking (which does not really do anything)
#locking.provider = fake
# Authorisation provider
# default provider uses ACL specified in the database for every file
acl.provider = acl
# "global" if you want all files to share the same ACL set as properties (see below)
#acl.provider = global
# "trusted": everyone can do anything.
# useful if you have a proxy in front of v7files managing permissions
#acl.provider = trusted
# access permissions for the endpoint's root file id
# you should be setting those in the database itself (on a per-file basis)
# however, for simple scenarios, you may not want to do that
# in this case, you can set them here
# they will override any permissions set in the database
# (and if child files do not specify anything themselves, they will inherit
# them as well), but only for the root file itself
#acl.read = anonymous
#acl.open = anonymous
#acl.write = role1, role2, user1, group2
# Authentication provider
# by default, authentication is disabled
# (this means only anonymous access is available, which
# is also disabled by default, see "auth.anonymous"
# the "demo" authentication provider uses password and role definition
# set as properties, with some defaults to be used for quick
# demonstrations or testing
#auth.provider = demo
# the "trusted" authentication provider relies on authentication
# having been performed by a proxy server in front to v7files
# and just trusts the user and role names passed as HTTP headers
#auth.provider = trusted
# anonymous access
# if set, allow anonymous access and use the given role name to check permissions
# if not set (the default) authentication is required
#auth.anonymous = anonymous
# Multi-tenant mode
# If you place an endpoint in multi-tenant mode,
# it will use a different MongoDB database for every tenant
# (these databases and the "v7files" collection must already exist)
# Single tenant (the default) uses the database specified by "mongo.db"
v7files.tenants = single
# "path"-based multi-tenant mode uses the first path segment of the endpoint url
# as the tenant name (= database name), the document root will start after that
#v7files.tenants = path
################### internal configuration, do not edit (unless you really know what you are doing) ########################
resource.factory.factory.class = v7db.files.milton.ResourceFactoryFactory
log4j.appender.A1=org.apache.log4j.ConsoleAppender
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%d{ISO8601} [%X{method} %X{path}] [%t] %-5p %c %x - %m%n
log4j.logger.com.bradmcevoy=WARN
log4j.appender.V7=org.apache.log4j.ConsoleAppender
log4j.appender.V7.layout=org.apache.log4j.PatternLayout
log4j.appender.V7.layout.ConversionPattern=%d{ISO8601} [%X{tenant}] [%X{user}] [%X{method} %X{path}] %-5p %c %x - %m%n
log4j.additivity.v7db.files=false