-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsample-community.conf
182 lines (137 loc) · 5.87 KB
/
sample-community.conf
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
####################################################
# Database configuration
####################################################
db.host=127.0.0.1
db.port=3306
db.name=community_db
db.user=USERNAME_GOES_HERE
db.password=PASSWORD_GOES_HERE
## Where to store the generated scratch jdbc
## properties file.
## ! --------------------------------------------------
## NOTE: updating this value also requires updating the
## JDBC config path in war/WEB-INF/jetty-web.xml
## ! --------------------------------------------------
## Also, on windows, paths need to be escaped, e.g.,
## C\:\\Temp\\jdbc.properties
jdbc.properties=/tmp/jdbc.properties
####################################################
# Server configuration
####################################################
port=8081
# replace this with your hostname
host=127.0.0.1
## A path to a directory for storing NCSA-style request logs
## NOTE: on windows, paths need to be escaped, e.g.,
## C\:\\Temp
#request.log.directory=/tmp
## If logging is enabled, how long should logs be retained
#request.log.retain.days=7
## The number of minutes between client back-to-back client refresh requests
#oneswarm.community.refresh.interval=10
## The maximum number of friends to be returned for standard community server requests
#max.friends.to.return=26
## Number of swarms per-page in category results and files.jsp page.
#swarms.per.page=30
## Number of swarms provided in each search results page
#swarms.per.search.result.page=30
## When returning friend lists, include both the nickname and the username of the registrant.
#include.username.with.nickname=false
## Keys that have not refreshed in this amount of time will be dropped
## from the list of active keys
#user.expiration.seconds=86400
## The number of concurrent threads for handling incoming connections
#max.threads=30
## The name shown to clients
#community.server.name=OneSwarm Community Server
## Message of the day. This has the style div.motd in war/css/community_server.css
#motd=Welcome!
####################################################
# RSS
####################################################
## Enable RSS feeds
#enable.rss.feeds=false
## The base URL to use for RSS feeds.
#rss.base.url=http://your.url.here.invalid/
####################################################
# Server options
####################################################
##Changes the friend matching policy of the server. Instead of returning
##friends randomly, the server w ill return:
## 1). All keys (if registered) from the keys file to all users and
## 2). Divide up the registered users among only the users with keys in the keys file.
## This enables a trusted set of intermediaries to mediate all sharing for
## users of the community server.
#infrastructure.peers=keys.txt
####################################################
# Access control
####################################################
## Require users to authenticate using a valid account
## in order to register keys and request friend lists
#require.auth.for.key.registration=false
## Require users to authenticate using a valid account
## in order to publish swarms
#require.auth.for.publish=true
## Allow users (not just moderators) to publish.
#allow.user.publishing=true
## Allow account creation (other than by administrator).
#allow.signup=true
## Require users to complete a CAPTCHA during signup.
#signup.requires.captcha=true
## If true, submitted swarms will not be shown to users
## until reviewed by a moderator.
#require.swarm.moderation=false
## If false, store magnet links only. Discard piece data, etc.
#store.torrents=false
## Disallow all comments, even for registered users.
#disable.user.comments=false
## Retain the IP address of users making comments.
#keep.comment.ips=true
## Display comment IPs, if saved, to moderators.
#display.comment.ips.moderators=true
## Discard submitted previews
#discard.previews=false
## Store submitted previews, but do not show them to users.
#dont.display.previews=false
## Log account names when swarms are submitted.
#retain.account.info=true
## The default number of keys that can be registered by a single IP.
#key.registration.limit.ip.default=5
## The default key registration limit per account.
#key.registration.limit.account.default=5
## Run server using SSL. <keystore> is the path
## to the java keystore storing the certificate.
## For more information on generating certificates,
## check out: http://docs.codehaus.org/display/JETTY/How+to+configure+SSL
#ssl=path/to/keystore
## When using SSL, also maintain listen for ordinary connections on this port
## This prevent certificate errors when browsing files in a browser, but
## allows users to still use SSL for publishing / key distribution.
#unencrypted.port=8082
## The password for accessing the SSL keystore. Alternately, this can be
## specified by setting the jetty.ssl.keypassword and jetty.ssl.password
## properties, or via prompts during server startup.
#keystore.password=password
## Whitelist or blacklist IP address ranges from communicating with
## this server. Format is a list of either address ranges or
## prefixes, e.g.:
## 1.2.3.4-1.2.255.255
## 1.2.0.0/16
#ip.whitelist=whitelist.txt
#ip.blacklist=blacklist.txt
## A text file listing recommended search keywords for subscribers of this server to drop.
#search.filter.file=filter.txt
## Allow very rapid requests rates. (Otherwise, request floods are dropped.)
#allow.flooding=false
####################################################
# Misc
####################################################
## Enable stats collecting by providing an address to
## to a ganglia monitoring host / port.
## see: http://ganglia.info/, works with Ganglia 3.0.x only.
## Collected stats:
## os_cs_keys_registered : Number of registered keys
## os_cs_users_online: Number of users currently online
## os_cs_ram_used: Amount of ram used by server
#ganglia.host=10.0.1.100
#ganglia.port=8649