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