- anti-abuse features created
[mir.git] / source / default.properties
1 #
2 # Sample config for Mir
3 # by Matthias <mjordan@code-fu.de> 2001-09-12
4 #
5 # The Mir software realizes a semi-dynamic web service:
6 # The web server that is accessed by users has pure static
7 # pages. These pages are generated by the Mir software that
8 # consists of a collection of Java servlets and HTML templates.
9 # Mir uses a database server to store the data that is needed to
10 # build the static site.
11 # So there are basically three parts in this config file:
12 #
13 # a) general setup
14 # b) static site config
15 # c) dynamic admin site
16 # d) database config
17 #
18 # edit this to suit your needs (here with sampleuser idfx)
19 # After you edited this file, build.sh has to be invoked.
20 # To be sure, also restart Tomcat.
21 #
22 # Note that for Mir to work, Tomcat has to be set up to handle all
23 # URLs that begin with /servlet. All other URLs are handled by Apache.
24 #
25 # The setup uses the following assumptions:
26 # The URL to reach the site is http://indy.code-fu.de
27 # The StorageRoot of this URL is /pub/Dokumente/Indymedia/de-tech/Mir
28 # All data is located below this directory, including the servlets.
29
30
31 #
32 #
33 # GENERAL SETUP
34 #
35
36 ### mir/imc information
37 Mir.Name=mir.indymedia.org
38 Mir.Shortname=mir
39 Mir.Contact-email.address=mir-coders@lists.indymedia.org
40 Mir.Contact-email.name=mir-coders mailinglist
41 Mir.Tech-email.address=mir-coders@lists.indymedia.org
42 Mir.Tech-email.name=mir-coders mailinglist
43 Mir.Public-email.address=mir-coders@lists.indymedia.org
44 Mir.Public-email.name=mir-coders mailinglist
45
46 Mir.Version=1.1beta
47 StandardLanguage=de
48 DirectOpenposting=yes
49
50 # The name of the abuse config file (relative to the WEB-INF dir)
51 Abuse.Config=abuse.properties
52 # The name of the cookie that can be used to thwart trolls
53 #    (The name is deliberately misleading)
54 Abuse.CookieName=SessionIdentifier
55
56 # The time the cookie will remain active in hours
57 #   168 = 1 week
58 Abuse.CookieMaxAge=168
59
60
61 #where to put the lucene index
62 IndexPath=/tmp/index
63
64 TempDir=/tmp
65
66 Log.LogClass = mir.log.log4j.LoggerImpl
67 Log.log4j.ConfigurationFile = etc/log4j.properties
68 Log.Home = log
69
70 Mir.Localizer=mircoders.localizer.basic.MirBasicLocalizer
71
72 # The location of the producer specifiations
73 Mir.Localizer.ProducerConfigFile=etc/producer/producers.xml
74
75 # Settings for the admin login:
76 # If the default language is left empty, it will set the accept-language of
77 # the client browser as the default.
78 Mir.Login.DefaultLanguage=en
79 Mir.Login.Languages=en;nl;de;qu;tr;ay;es;eu
80
81
82 # the templates
83 Mir.Localizer.Producer.GeneratorLibrary= default=freemarker(etc/producer/)
84 Mir.Localizer.Admin.GeneratorLibrary= default=freemarker(templates/admin/)
85 Mir.Localizer.OpenPosting.GeneratorLibrary= default=freemarker(etc/open/)
86
87 # How should the custom operations (hide etc) in article and comment lists
88 # be presented?
89 # 0 = links, 1 = checkboxes, 2 = a listbox
90 Mir.Localizer.Admin.ListOperationsFlavor=1
91
92 # Which producers need to be called after an article (resp. a comment) is posted
93 Mir.Localizer.OpenPosting.ContentProducers= media.new;articles.changed;startpage.generate;synchronization.run
94 Mir.Localizer.OpenPosting.CommentProducers= articles.changed;synchronization.run
95
96 # Which producers need to be called after the "produce all new" link is clicked from admin
97 Mir.Localizer.Producer.AllNewProducers= media.new;articles.changed;startpage.run;synchronization.run
98
99
100 #note that you can't make pdf's without making fo's
101 #this is actually now set in producers.xml
102 #but these summarize what is said in there for the benefit of OpenMir 
103 GenerateFO=yes
104 GeneratePDF=yes
105
106 #use rsync to mirror the website to a remote-host
107 Rsync=no
108 Rsync.Script.Path=/var/www/bin/rsync-copy
109
110 # the maximum allowed size of an uploaded media file in KB.
111 MaxMediaUploadSize=20000
112
113 # the maximum number of allowed media items to upload at once.
114 ServletModule.OpenIndy.MaxMediaUploadItems=20
115
116 # the default number of media items to upload at once
117 ServletModule.OpenIndy.DefaultMediaUploadItems=1
118
119
120 #
121 #
122 # STATIC SITE CONFIG
123 #
124
125 # the url of the static site
126 Producer.ProductionHost=http://indy.code-fu.de
127
128 # Produrce.StorageRoot is the directory, in which
129 # the generated HTML pages will be stored
130 Producer.StorageRoot=/pub/Dokumente/Indymedia/de-tech/Mir/produced
131
132 # for FileEdit module
133 #
134 # where do we find the files? absolute path
135 ServletModule.FileEdit.FileDirectory=/pub/Dokumente/Indymedia/de-tech/Mir/produced
136 ServletModule.FileEdit.ExtFilter=inc
137
138 #
139 #
140 # DYNAMIC SITE CONFIG
141 #
142
143 # the url of the openposting-servlet
144 Producer.OpenAction=http://indy.code-fu.de/Mir/servlet/OpenMir
145
146 # use this property if the pages are not produced under the docRoot
147 # of the webserver. all links in the produced pages are prepended
148 # with Producer.DocRoot
149 Producer.DocRoot=
150
151 Producer.ActionServlet=/servlet/Mir
152
153 # this is the name of the subdirectory where the image-dir
154 # will be linked to.
155 Producer.ImageRoot=/img
156
157
158 # the url of the video-server
159 Producer.Video.Host=http://indy.code-fu.de/video
160
161 # the url of the audio-server
162 Producer.Audio.Host=http://indy.code-fu.de/audio
163
164 # the url of the image-server
165 Producer.Image.Host=http://indy.code-fu.de/images
166
167 # the url of the media-server
168 Producer.Media.Host=http://indy.code-fu.de/media
169
170 # the url of the real-media-server
171 Producer.RealMedia.Host=rtsp://some.media.server/somedir/
172
173
174 # image specific storage directories
175 # absolute directory, where the images are saved
176 Producer.Image.Path=/pub/Dokumente/Indymedia/de-tech/Mir/produced/images/
177
178 # images will be scaled down so that the size (both widht and height) are below:
179 Producer.Image.MaxSize = 640
180
181 # icons will be generated so that the size (both width and height) are below:
182 Producer.Image.MaxIconSize = 120
183
184
185 # media specific storage directories
186 # absolute directory, where the media files are saved
187 Producer.Media.Path=/pub/Dokumente/Indymedia/de-tech/Mir/produced/media
188
189 # absolute directory, where the realmedia data files(ra and rm) are saved
190 # the ram files which point to the RealMedia.Host get saved in the regular Media dir
191 # this should make rsyncing to a separate streaming server much easier
192 Producer.RealMedia.Path=/pub/Dokumente/rtsp
193
194 # relativ directory, where the thumbnails will be saved
195 Producer.Image.IconPath=/icon
196
197 # Tiny Icons for the media types on the newswire summary.
198 # (right hand side of start page)
199 Producer.Icon.TinyImage=photo_small.gif
200 Producer.Icon.TinyAudio=audio_small.gif
201 Producer.Icon.TinyVideo=video_small.gif
202 Producer.Icon.TinyText=text_small.gif
203
204 #Medium sized icons used at various places
205 Producer.Icon.BigImage=photo_big.gif
206 Producer.Icon.BigAudio=audio_big.gif
207 Producer.Icon.BigVideo=video_big.gif
208 Producer.Icon.BigText=text_big.gif
209
210 #the style sheet used to turn html into xsl:fo
211 Producer.HTML2FOStyleSheet=/some/dir/mir/etc/producer/html2fo.xsl 
212
213
214 #
215 # edit with caution below this line
216 ######################################################################
217
218 #
219 #
220 # DATABASE SETUP
221 #
222
223 #
224 # specify your database
225
226 Database.poolMin=1
227 Database.poolMax=10
228 Database.poolResetTime=1.0
229 Database.PoolLog=log/pool.log
230 Database.Limit=20
231 Database.Username=postgres
232 Database.Password=
233 Database.Host=localhost
234 Database.Name=Mir
235
236 #
237 # this sets the adaptor to be used
238
239 Database.Adaptor=mir.storage.DatabaseAdaptorPostgresql
240
241 #
242 # configuration for adaptor postgres
243 # In this example, "Mir" is the dbname
244
245 Adaptor.PostgreSQL.URL=jdbc:postgresql://localhost:5432/Mir
246 Adaptor.PostgreSQL.Driver=org.postgresql.Driver
247
248 #
249 # should be explained .)
250 #
251
252 HTMLTemplateProcessor.Dir=
253
254 #
255 # Servlet / Module configurations
256 #
257
258 # don't change this unless you really know your i18n.
259 # The default encoding charset used in the written html files as well
260 # as the dynamic output html.
261 # also used for the HTML charset meta tag.
262 Mir.DefaultEncoding=UTF8
263
264
265
266 #
267 # config used for OpenIndy
268 ServletModule.OpenIndy.CommentTemplate=etc/open/comment.template
269 ServletModule.OpenIndy.CommentDoneTemplate=etc/open/comment_done.template
270 ServletModule.OpenIndy.CommentDupeTemplate=etc/open/comment_dupe.template
271 ServletModule.OpenIndy.PostingTemplate=etc/open/posting.template
272 ServletModule.OpenIndy.PostingDoneTemplate=etc/open/posting_done.template
273 ServletModule.OpenIndy.PostingDupeTemplate=etc/open/posting_dupe.template
274 ServletModule.OpenIndy.PostingDisabledTemplate=etc/open/posting_disabled.template
275 ServletModule.OpenIndy.SearchResultsTemplate=etc/open/search_results.template
276 ServletModule.OpenIndy.PrepareMailTemplate=etc/open/prepare_mail.template
277 ServletModule.OpenIndy.SentMailTemplate=etc/open/sent_mail.template
278 ServletModule.OpenIndy.EmailIsFrom=mailer@somewhere.org
279 ServletModule.OpenIndy.SMTPServer=localhost
280 ServletModule.OpenIndy.ErrorTemplate=etc/open/error.template
281 ServletModule.OpenIndy.UserErrorTemplate=etc/open/usererror.template
282
283
284
285 Mir.LoginTemplate=templates/admin/login.template
286
287 Mir.ErrorTemplate=templates/error.template
288 Mir.UserErrorTemplate=templates/usererror.template
289
290 ServletModule.Themen.ConfirmTemplate=templates/admin/confirm.template
291 ServletModule.Themen.ObjektTemplate=templates/admin/topic.template
292 ServletModule.Themen.ListTemplate=templates/admin/topiclist.template
293
294 ServletModule.LinksImcs.ConfirmTemplate=templates/admin/confirm.template
295 ServletModule.LinksImcs.ObjektTemplate=templates/admin/linksimcs.template
296 ServletModule.LinksImcs.ListTemplate=templates/admin/linksimcslist.template
297
298 ServletModule.Users.ConfirmTemplate=templates/admin/confirm.template
299 ServletModule.Users.ObjektTemplate=templates/admin/user.template
300 ServletModule.Users.ListTemplate=templates/admin/userlist.template
301
302 ServletModule.Images.ConfirmTemplate=templates/admin/confirm.template
303 ServletModule.Images.ObjektTemplate=templates/admin/image.template
304 ServletModule.Images.ListTemplate=templates/admin/imagelist.template
305
306 ServletModule.Audio.ConfirmTemplate=templates/admin/confirm.template
307 ServletModule.Audio.ObjektTemplate=templates/admin/audio.template
308 ServletModule.Audio.ListTemplate=templates/admin/audiolist.template
309
310 ServletModule.Video.ConfirmTemplate=templates/admin/confirm.template
311 ServletModule.Video.ObjektTemplate=templates/admin/video.template
312 ServletModule.Video.ListTemplate=templates/admin/videolist.template
313
314 ServletModule.OtherMedia.ConfirmTemplate=templates/admin/confirm.template
315 ServletModule.OtherMedia.ObjektTemplate=templates/admin/media.template
316 ServletModule.OtherMedia.ListTemplate=templates/admin/medialist.template
317
318 ServletModule.Content.ConfirmTemplate=templates/admin/confirm.template
319 ServletModule.Content.ObjektTemplate=content.template
320 ServletModule.Content.ListTemplate=contentlist.template
321
322 ServletModule.Mediafolder.ConfirmTemplate=templates/admin/confirm.template
323 ServletModule.Mediafolder.ObjektTemplate=templates/admin/mediafolder.template
324 ServletModule.Mediafolder.ListTemplate=templates/admin/mediafolderlist.template
325
326 #
327 # config for ServletModuleComment - browsing/editing/deleting comments
328 ServletModule.Comment.ConfirmTemplate=templates/admin/confirm.template
329 ServletModule.Comment.ObjektTemplate=templates/admin/comment.template
330 ServletModule.Comment.ListTemplate=templates/admin/commentlist.template
331
332 #
333 # config for ServletModuleHidden - lists all hidden articles of one month
334 ServletModule.Hidden.ListTemplate=templates/admin/hiddenlist.template
335
336 #
337 # config for Breaking - browsing/editing/deleting breaking news
338 ServletModule.Breaking.ConfirmTemplate=templates/admin/confirm.template
339 ServletModule.Breaking.ObjektTemplate=templates/admin/breaking.template
340 ServletModule.Breaking.ListTemplate=templates/admin/breakinglist.template
341
342 #
343 # config for Breaking - editing text files
344 ServletModule.FileEdit.ConfirmTemplate=templates/admin/confirm.template
345 ServletModule.FileEdit.ObjektTemplate=templates/admin/fileedit.template
346 ServletModule.FileEdit.ListTemplate=templates/admin/fileeditlist.template
347
348 #
349 # config for messages - browsing/editing/deleting internal messages
350 ServletModule.Messages.ConfirmTemplate=templates/admin/confirm.template
351 ServletModule.Messages.ObjektTemplate=templates/admin/message.template
352 ServletModule.Messages.ListTemplate=templates/admin/messagelist.template
353
354 #
355 # config for languages - browsing/editing/deleting languages
356 ServletModule.Language.ConfirmTemplate=templates/admin/confirm.template
357 ServletModule.Language.ObjektTemplate=templates/admin/language.template
358 ServletModule.Language.ListTemplate=templates/admin/languagelist.template
359
360 #
361 # config for article type
362 ServletModule.ArticleType.ConfirmTemplate=templates/admin/confirm.template
363 ServletModule.ArticleType.EditTemplate=templates/admin/articletype.template
364 ServletModule.ArticleType.ListTemplate=templates/admin/articletypelist.template
365
366 #
367 # config for comment status
368 ServletModule.CommentStatus.ConfirmTemplate=templates/admin/confirm.template
369 ServletModule.CommentStatus.EditTemplate=templates/admin/commentstatus.template
370 ServletModule.CommentStatus.ListTemplate=templates/admin/commentstatuslist.template
371
372 #
373 # producer-related configs below
374 #
375
376 Producer.ExtLinkName=extlink.gif
377 Producer.IntLinkName=intlink.gif
378 Producer.MailLinkName=maillink.gif
379