- major bugfix: many many threads were being created until a "can't create native...
[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 DirectOpenposting=yes
48
49 # The name of the abuse config file (relative to the WEB-INF dir)
50 Abuse.Config=abuse.properties
51 # The name of the cookie that can be used to thwart trolls
52 #    (The name is deliberately misleading)
53 Abuse.CookieName=SessionIdentifier
54
55 # The time the cookie will remain active in hours
56 #   168 = 1 week
57 Abuse.CookieMaxAge=168
58
59
60 #where to put the lucene index
61 IndexPath=/tmp/index
62
63 TempDir=/tmp
64
65 Log.LogClass = mir.log.log4j.LoggerImpl
66 Log.log4j.ConfigurationFile = etc/log4j.properties
67 Log.Home = log
68
69 Mir.Localizer=mircoders.localizer.basic.MirBasicLocalizer
70
71 # The location of the producer specifiations
72 Mir.Localizer.ProducerConfigFile=etc/producer/producers.xml
73
74 # Settings for the admin login:
75 # If the default language is left empty, it will set the accept-language of
76 # the client browser as the default.
77 Mir.Login.DefaultLanguage=en
78
79 # The available languages in the login form:
80 Mir.Login.Languages=en;de;fr;nl;es;pt;eu;sv;tr;zh
81
82 # For missing values, the FallbackLanguage is used as default
83 Mir.Admin.FallbackLanguage=en
84
85
86 # the templates
87 Mir.Localizer.Producer.GeneratorLibrary= default=freemarker(etc/producer/)
88 Mir.Localizer.Admin.GeneratorLibrary= default=freemarker(templates/admin/)
89 Mir.Localizer.OpenPosting.GeneratorLibrary= default=freemarker(etc/open/)
90
91 # How should the custom operations (hide etc) in article and comment lists
92 # be presented?
93 # 0 = links, 1 = checkboxes, 2 = a listbox
94 Mir.Localizer.Admin.ListOperationsFlavor=1
95
96 # How should the topics be presented on the article edit page?
97 # 0 = in a multiselect list box, 1 = checkboxes
98 Mir.Localizer.Admin.TopicListFlavor=1
99
100 # For the checkboxes flavour, how many columns should there be?
101 Mir.Localizer.Admin.TopicListColumns=3
102
103 # In which order should the topic appear?
104 Mir.Localizer.Admin.TopicListOrder=title
105
106 # enable deletion of comments/articles?
107 Mir.Localizer.Admin.AllowDeleteComment=1
108 Mir.Localizer.Admin.AllowDeleteArticle=1
109
110 # Article Preview Link URL (Link to produced articles from within admin)
111 ContentList.ArticleLink=http://production.indy.code-foo.org/en/${date.formatted.yyyy}/${date.formatted.MM}/${id}.shtml
112 CommentList.ArticleLink=http://production.indy.code-foo.org/en/${co_content.date.formatted.yyyy}/${to_content.date.formatted.MM}/${to_content.id}.shtml
113
114 # enable deletion of comments/articles?
115 Mir.Localizer.Admin.AdministerOperations= \
116    comments:module=Comment&do=list
117
118
119 # Which producers need to be called after an article (resp. a comment) is posted
120 Mir.Localizer.OpenPosting.ContentProducers= media.new;articles.changed;startpage.generate;synchronization.run
121 Mir.Localizer.OpenPosting.CommentProducers= articles.changed;synchronization.run
122
123 # Which producers need to be called after the "produce all new" link is clicked from admin
124 Mir.Localizer.Producer.AllNewProducers= media.new;articles.changed;startpage.run;synchronization.run
125
126
127 #note that you can't make pdf's without making fo's
128 #this is actually now set in producers.xml
129 #but these summarize what is said in there for the benefit of OpenMir
130 GenerateFO=yes
131 GeneratePDF=yes
132
133 #use rsync to mirror the website to a remote-host
134 Rsync=no
135 Rsync.Script.Path=/var/www/bin/rsync-copy
136
137 # the maximum allowed size of an uploaded media file in KB.
138 MaxMediaUploadSize=20000
139
140 # the maximum number of allowed media items to upload at once.
141 ServletModule.OpenIndy.MaxMediaUploadItems=20
142
143 # the default number of media items to upload at once
144 ServletModule.OpenIndy.DefaultMediaUploadItems=1
145
146
147 #
148 #
149 # STATIC SITE CONFIG
150 #
151
152 # the url of the static site
153 Producer.ProductionHost=http://indy.code-fu.de
154
155 # Produrce.StorageRoot is the directory, in which
156 # the generated HTML pages will be stored
157 Producer.StorageRoot=/pub/Dokumente/Indymedia/de-tech/Mir/produced
158
159 # FileEdit module
160 #   a list of directories to edit
161 #   format: 
162 #      <name>:<path>:<file filter>:<0|1 (recursion off or on)> [, ....]
163
164 ServletModule.FileEdit.Configuration= \
165   includes:/pub/Dokumente/Indymedia/de-tech/Mir/produced/inc:.*\\.inc:1
166
167 #
168 #
169 # DYNAMIC SITE CONFIG
170 #
171
172 # the url of the openposting-servlet
173 Producer.OpenAction=http://indy.code-fu.de/Mir/servlet/OpenMir
174
175 # use this property if the pages are not produced under the docRoot
176 # of the webserver. all links in the produced pages are prepended
177 # with Producer.DocRoot
178 Producer.DocRoot=
179
180 Producer.ActionServlet=/servlet/Mir
181
182 # this is the name of the subdirectory where the image-dir
183 # will be linked to.
184 Producer.ImageRoot=/img
185
186
187 # the url of the video-server
188 Producer.Video.Host=http://indy.code-fu.de/video
189
190 # the url of the audio-server
191 Producer.Audio.Host=http://indy.code-fu.de/audio
192
193 # the url of the image-server
194 Producer.Image.Host=http://indy.code-fu.de/images
195
196 # the url of the media-server
197 Producer.Media.Host=http://indy.code-fu.de/media
198
199 # the url of the real-media-server
200 Producer.RealMedia.Host=rtsp://some.media.server/somedir/
201
202
203 # image specific storage directories
204 # absolute directory, where the images are saved
205 Producer.Image.Path=/pub/Dokumente/Indymedia/de-tech/Mir/produced/images/
206
207 # images will be scaled down so that the size (both widht and height) are below:
208 Producer.Image.MaxSize = 640
209
210 # icons will be generated so that the size (both width and height) are below:
211 Producer.Image.MaxIconSize = 120
212
213 # descaling will only occur if at least the following percentage of either
214 #  the width or the height needs to be removed:
215 Producer.Image.MinDescalePercentage=10
216
217 # descaling will only occur if at least the following number of pixels needs
218 #  to be removed from either the width or the height:
219 Producer.Image.MinDescaleReduction=10
220
221
222 # media specific storage directories
223 # absolute directory, where the media files are saved
224 Producer.Media.Path=/pub/Dokumente/Indymedia/de-tech/Mir/produced/media
225
226 # absolute directory, where the realmedia data files(ra and rm) are saved
227 # the ram files which point to the RealMedia.Host get saved in the regular Media dir
228 # this should make rsyncing to a separate streaming server much easier
229 Producer.RealMedia.Path=/pub/Dokumente/rtsp
230
231 # relativ directory, where the thumbnails will be saved
232 Producer.Image.IconPath=/icon
233
234 # Tiny Icons for the media types on the newswire summary.
235 # (right hand side of start page)
236 Producer.Icon.TinyImage=photo_small.gif
237 Producer.Icon.TinyAudio=audio_small.gif
238 Producer.Icon.TinyVideo=video_small.gif
239 Producer.Icon.TinyText=text_small.gif
240
241 #Medium sized icons used at various places
242 Producer.Icon.BigImage=photo_big.gif
243 Producer.Icon.BigAudio=audio_big.gif
244 Producer.Icon.BigVideo=video_big.gif
245 Producer.Icon.BigText=text_big.gif
246
247 #the style sheet used to turn html into xsl:fo
248 Producer.HTML2FOStyleSheet=/some/dir/mir/etc/producer/html2fo.xsl
249
250 # the following lines are used to construct PDFs on the fly from one or more articles
251 # for the moment, if you want to change anything else about your pdfs, you 
252 # will have to learn some java!
253 #
254 # keep in mind that there may not be enough room for all the text you enter as the 
255 # value of one these options, if text doesn't appear, the only easy thing to do is 
256 # use less text!
257 #
258 # also, be sure to adjust the corresponding line height if you change a font size...
259 # this may require some trial and error to get right
260 #
261 # Available font families are helvetica, courier, and times
262 #
263
264
265 # a single line of big text which will appear at the top of the first page of all generated pdfs
266
267 PDF.Title.String=INDYMEDIA SOMEWHERE
268 PDF.Title.FontSize=24
269 PDF.Title.LineHeight=28
270 PDF.Title.FontFamily=courier
271
272 # footer is about two lines of small text which will appear at the bottom of every page 
273
274 PDF.Footer.String=Indymedia does blah.  Content is good, and free to use for non-commercial purposes under the Open Content license. if you have questions, email someone.
275 PDF.Footer.Height=54
276 PDF.Footer.FontSize=12
277 PDF.Footer.FontFamily=helvetica 
278
279 # how to format the index, i.e. the newsletter table of contents
280
281 PDF.Index.FontSize=12
282 PDF.Index.LineHeight=16
283 PDF.Index.FontFamily=helvetica
284
285 # how to format the meta-data, i.e. title, author, date
286
287 PDF.Meta.Height=36
288 PDF.Meta.FontSize=14
289 PDF.Meta.FontFamily=helvetica 
290
291 # how to format the article description
292
293 PDF.Description.FontSize=12
294 PDF.Description.LineHeight=16
295 PDF.Description.FontFamily=helvetica
296
297 # how to format the article content
298
299 PDF.Content.FontSize=10
300 PDF.Content.LineHeight=16
301 PDF.Content.FontFamily=helvetica
302
303 # the formatting for images in gallery mode
304
305 PDF.BigImageCaption.FontSize=16
306 PDF.BigImageCaption.FontFamily=helvetica
307
308 # the formatting for the article source
309
310 PDF.Source.FontSize=12
311 PDF.Source.LineHeight=16
312 PDF.Source.FontFamily=courier
313
314
315
316
317 #
318 # the size paper your target audience will likely have in their printers.  pick one of A4 or LETTER
319 #
320
321 PDF.PageSize=A4
322
323 # the number of Objects which can fit in your MRUCache
324
325 Global.Cache.Items=15
326
327 #
328 # edit with caution below this line
329 ######################################################################
330
331 #
332 #
333 # DATABASE SETUP
334 #
335
336 #
337 # specify your database
338
339 Database.poolMin=1
340 Database.poolMax=10
341 Database.poolResetTime=1.0
342 Database.PoolLog=log/pool.log
343 Database.Limit=20
344 Database.Username=postgres
345 Database.Password=
346 Database.Host=localhost
347 Database.Name=Mir
348
349 #
350 # this sets the adaptor to be used
351
352 Database.Adaptor=mir.storage.DatabaseAdaptorPostgresql
353
354 #
355 # configuration for adaptor postgres
356 # In this example, "Mir" is the dbname
357
358 Adaptor.PostgreSQL.URL=jdbc:postgresql://localhost:5432/Mir
359 Adaptor.PostgreSQL.Driver=org.postgresql.Driver
360
361 #
362 # Servlet / Module configurations
363 #
364
365 # don't change this unless you really know your i18n.
366 # The default encoding charset used in the written html files as well
367 # as the dynamic output html.
368 # also used for the HTML charset meta tag.
369 Mir.DefaultEncoding=UTF8
370
371 # this encoding is used for the HTML charset meta tag.
372 # it must be the html charset equivalent of the Java encoding above
373 # don't change this unless...
374 Mir.DefaultHTMLCharset=UTF-8
375
376
377
378
379 Localizer.OpenSession.article.EditTemplate = editarticle.template
380 Localizer.OpenSession.article.DupeTemplate = dupearticle.template
381 Localizer.OpenSession.article.DoneTemplate = donearticle.template
382 Localizer.OpenSession.article.UnsupportedMediaTemplate = unsupportedmediatype.template
383 Localizer.OpenSession.comment.EditTemplate = editcomment.template
384 Localizer.OpenSession.comment.DupeTemplate = dupecomment.template
385 Localizer.OpenSession.comment.DoneTemplate = donecomment.template
386 Localizer.OpenSession.comment.UnsupportedMediaTemplate = unsupportedmediatype.template
387 Localizer.OpenSession.ErrorTemplate = sessionerror.template
388
389
390
391
392 #
393 # config used for OpenIndy
394
395 ServletModule.OpenIndy.CommentTemplate=comment.template
396 ServletModule.OpenIndy.CommentDoneTemplate=comment_done.template
397 ServletModule.OpenIndy.CommentDupeTemplate=comment_dupe.template
398 ServletModule.OpenIndy.PostingTemplate=posting.template
399 ServletModule.OpenIndy.PostingDoneTemplate=posting_done.template
400 ServletModule.OpenIndy.PostingDupeTemplate=posting_dupe.template
401 ServletModule.OpenIndy.PostingDisabledTemplate=posting_disabled.template
402 ServletModule.OpenIndy.SearchResultsTemplate=search_results.template
403 ServletModule.OpenIndy.PrepareMailTemplate=prepare_mail.template
404 ServletModule.OpenIndy.SentMailTemplate=sent_mail.template
405 ServletModule.OpenIndy.EmailIsFrom=mailer@somewhere.org
406 ServletModule.OpenIndy.SMTPServer=localhost
407 ServletModule.OpenIndy.ErrorTemplate=error.template
408 ServletModule.OpenIndy.UserErrorTemplate=usererror.template
409
410
411
412 Mir.TemplateDir=templates/admin/
413
414 Mir.LoginTemplate=login.template
415 Mir.StartTemplate=start_admin.template
416
417 Mir.ErrorTemplate=error.template
418 Mir.UserErrorTemplate=usererror.template
419
420 ServletModule.Themen.ConfirmTemplate=confirm.template
421 ServletModule.Themen.ObjektTemplate=topic.template
422 ServletModule.Themen.ListTemplate=topiclist.template
423
424 ServletModule.LinksImcs.ConfirmTemplate=confirm.template
425 ServletModule.LinksImcs.ObjektTemplate=linksimcs.template
426 ServletModule.LinksImcs.ListTemplate=linksimcslist.template
427
428 ServletModule.Users.ConfirmTemplate=confirm.template
429 ServletModule.Users.ObjektTemplate=user.template
430 ServletModule.Users.ListTemplate=userlist.template
431
432 ServletModule.Images.ConfirmTemplate=confirm.template
433 ServletModule.Images.ObjektTemplate=image.template
434 ServletModule.Images.ListTemplate=imagelist.template
435
436 ServletModule.Audio.ConfirmTemplate=confirm.template
437 ServletModule.Audio.ObjektTemplate=audio.template
438 ServletModule.Audio.ListTemplate=audiolist.template
439
440 ServletModule.Video.ConfirmTemplate=confirm.template
441 ServletModule.Video.ObjektTemplate=video.template
442 ServletModule.Video.ListTemplate=videolist.template
443
444 ServletModule.OtherMedia.ConfirmTemplate=confirm.template
445 ServletModule.OtherMedia.ObjektTemplate=media.template
446 ServletModule.OtherMedia.ListTemplate=medialist.template
447
448 ServletModule.Content.ConfirmTemplate=confirm.template
449 ServletModule.Content.ObjektTemplate=content.template
450 ServletModule.Content.ListTemplate=contentlist.template
451
452 ServletModule.Mediafolder.ConfirmTemplate=confirm.template
453 ServletModule.Mediafolder.ObjektTemplate=mediafolder.template
454 ServletModule.Mediafolder.ListTemplate=mediafolderlist.template
455
456 #
457 # config for ServletModuleComment - browsing/editing/deleting comments
458 ServletModule.Comment.ConfirmTemplate=confirm.template
459 ServletModule.Comment.ObjektTemplate=comment.template
460 ServletModule.Comment.ListTemplate=commentlist.template
461
462 #
463 # config for ServletModuleHidden - lists all hidden articles of one month
464 ServletModule.Hidden.ListTemplate=hiddenlist.template
465
466 #
467 # config for Breaking - browsing/editing/deleting breaking news
468 ServletModule.Breaking.ConfirmTemplate=confirm.template
469 ServletModule.Breaking.ObjektTemplate=breaking.template
470 ServletModule.Breaking.ListTemplate=breakinglist.template
471
472 #
473 # config for Breaking - editing text files
474 ServletModule.FileEdit.ConfirmTemplate=confirm.template
475 ServletModule.FileEdit.ObjektTemplate=fileedit.template
476 ServletModule.FileEdit.ListTemplate=fileeditlist.template
477
478 #
479 # config for messages - browsing/editing/deleting internal messages
480 ServletModule.Messages.ConfirmTemplate=confirm.template
481 ServletModule.Messages.ObjektTemplate=message.template
482 ServletModule.Messages.ListTemplate=messagelist.template
483
484 #
485 # config for languages - browsing/editing/deleting languages
486 ServletModule.Language.ConfirmTemplate=confirm.template
487 ServletModule.Language.ObjektTemplate=language.template
488 ServletModule.Language.ListTemplate=languagelist.template
489
490 #
491 # config for article type
492 ServletModule.ArticleType.ConfirmTemplate=confirm.template
493 ServletModule.ArticleType.EditTemplate=articletype.template
494 ServletModule.ArticleType.ListTemplate=articletypelist.template
495
496 #
497 # config for comment status
498 ServletModule.CommentStatus.ConfirmTemplate=confirm.template
499 ServletModule.CommentStatus.EditTemplate=commentstatus.template
500 ServletModule.CommentStatus.ListTemplate=commentstatuslist.template
501
502 #
503 # producer-related configs below
504 #
505
506 Producer.ExtLinkName=extlink.gif
507 Producer.IntLinkName=intlink.gif
508 Producer.MailLinkName=maillink.gif
509