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