2 # Sample config for Mir
3 # by Matthias <mjordan@code-fu.de> 2001-09-12
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:
14 # b) static site config
15 # c) dynamic admin site
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.
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.
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.
36 ### mir/imc information
37 Mir.Name=mir.indymedia.org
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
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
55 # The time the cookie will remain active in hours
57 Abuse.CookieMaxAge=168
60 #where to put the lucene index
65 Log.LogClass = mir.log.log4j.LoggerImpl
66 Log.log4j.ConfigurationFile = etc/log4j.properties
69 Mir.Localizer=mircoders.localizer.basic.MirBasicLocalizer
71 # The location of the producer specifiations
72 Mir.Localizer.ProducerConfigFile=etc/producer/producers.xml
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
79 # The available languages in the login form:
80 Mir.Login.Languages=en;de;fr;nl;es;pt;eu;sv;tr;zh
82 # For missing values, the FallbackLanguage is used as default
83 Mir.Admin.FallbackLanguage=en
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/)
91 # How should the custom operations (hide etc) in article and comment lists
93 # 0 = links, 1 = checkboxes, 2 = a listbox
94 Mir.Localizer.Admin.ListOperationsFlavor=1
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
100 # For the checkboxes flavour, how many columns should there be?
101 Mir.Localizer.Admin.TopicListColumns=3
103 # In which order should the topic appear?
104 Mir.Localizer.Admin.TopicListOrder=title
106 # Which producers need to be called after an article (resp. a comment) is posted
107 Mir.Localizer.OpenPosting.ContentProducers= media.new;articles.changed;startpage.generate;synchronization.run
108 Mir.Localizer.OpenPosting.CommentProducers= articles.changed;synchronization.run
110 # Which producers need to be called after the "produce all new" link is clicked from admin
111 Mir.Localizer.Producer.AllNewProducers= media.new;articles.changed;startpage.run;synchronization.run
114 #note that you can't make pdf's without making fo's
115 #this is actually now set in producers.xml
116 #but these summarize what is said in there for the benefit of OpenMir
120 #use rsync to mirror the website to a remote-host
122 Rsync.Script.Path=/var/www/bin/rsync-copy
124 # the maximum allowed size of an uploaded media file in KB.
125 MaxMediaUploadSize=20000
127 # the maximum number of allowed media items to upload at once.
128 ServletModule.OpenIndy.MaxMediaUploadItems=20
130 # the default number of media items to upload at once
131 ServletModule.OpenIndy.DefaultMediaUploadItems=1
139 # the url of the static site
140 Producer.ProductionHost=http://indy.code-fu.de
142 # Produrce.StorageRoot is the directory, in which
143 # the generated HTML pages will be stored
144 Producer.StorageRoot=/pub/Dokumente/Indymedia/de-tech/Mir/produced
146 # for FileEdit module
148 # where do we find the files? absolute path
149 ServletModule.FileEdit.FileDirectory=/pub/Dokumente/Indymedia/de-tech/Mir/produced
150 ServletModule.FileEdit.ExtFilter=.*\.inc$
151 ServletModule.FileEdit.Recursive=0
155 # DYNAMIC SITE CONFIG
158 # the url of the openposting-servlet
159 Producer.OpenAction=http://indy.code-fu.de/Mir/servlet/OpenMir
161 # use this property if the pages are not produced under the docRoot
162 # of the webserver. all links in the produced pages are prepended
163 # with Producer.DocRoot
166 Producer.ActionServlet=/servlet/Mir
168 # this is the name of the subdirectory where the image-dir
170 Producer.ImageRoot=/img
173 # the url of the video-server
174 Producer.Video.Host=http://indy.code-fu.de/video
176 # the url of the audio-server
177 Producer.Audio.Host=http://indy.code-fu.de/audio
179 # the url of the image-server
180 Producer.Image.Host=http://indy.code-fu.de/images
182 # the url of the media-server
183 Producer.Media.Host=http://indy.code-fu.de/media
185 # the url of the real-media-server
186 Producer.RealMedia.Host=rtsp://some.media.server/somedir/
189 # image specific storage directories
190 # absolute directory, where the images are saved
191 Producer.Image.Path=/pub/Dokumente/Indymedia/de-tech/Mir/produced/images/
193 # images will be scaled down so that the size (both widht and height) are below:
194 Producer.Image.MaxSize = 640
196 # icons will be generated so that the size (both width and height) are below:
197 Producer.Image.MaxIconSize = 120
199 # descaling will only occur if at least the following percentage of either
200 # the width or the height needs to be removed:
201 Producer.Image.MinDescalePercentage=10
203 # descaling will only occur if at least the following number of pixels needs
204 # to be removed from either the width or the height:
205 Producer.Image.MinDescaleReduction=10
208 # media specific storage directories
209 # absolute directory, where the media files are saved
210 Producer.Media.Path=/pub/Dokumente/Indymedia/de-tech/Mir/produced/media
212 # absolute directory, where the realmedia data files(ra and rm) are saved
213 # the ram files which point to the RealMedia.Host get saved in the regular Media dir
214 # this should make rsyncing to a separate streaming server much easier
215 Producer.RealMedia.Path=/pub/Dokumente/rtsp
217 # relativ directory, where the thumbnails will be saved
218 Producer.Image.IconPath=/icon
220 # Tiny Icons for the media types on the newswire summary.
221 # (right hand side of start page)
222 Producer.Icon.TinyImage=photo_small.gif
223 Producer.Icon.TinyAudio=audio_small.gif
224 Producer.Icon.TinyVideo=video_small.gif
225 Producer.Icon.TinyText=text_small.gif
227 #Medium sized icons used at various places
228 Producer.Icon.BigImage=photo_big.gif
229 Producer.Icon.BigAudio=audio_big.gif
230 Producer.Icon.BigVideo=video_big.gif
231 Producer.Icon.BigText=text_big.gif
233 #the style sheet used to turn html into xsl:fo
234 Producer.HTML2FOStyleSheet=/some/dir/mir/etc/producer/html2fo.xsl
236 # the following lines are used to construct PDFs on the fly from one or more articles
237 # for the moment, if you want to change anything else about your pdfs, you
238 # will have to learn some java!
240 # keep in mind that there may not be enough room for all the text you enter as the
241 # value of one these options, if text doesn't appear, the only easy thing to do is
244 # also, be sure to adjust the corresponding line height if you change a font size...
245 # this may require some trial and error to get right
247 # Available font families are helvetica, courier, and times
251 # a single line of big text which will appear at the top of the first page of all generated pdfs
253 PDF.Title.String=INDYMEDIA SOMEWHERE
254 PDF.Title.FontSize=24
255 PDF.Title.LineHeight=28
256 PDF.Title.FontFamily=courier
258 # footer is about two lines of small text which will appear at the bottom of every page
260 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.
262 PDF.Footer.FontSize=12
263 PDF.Footer.FontFamily=helvetica
265 # how to format the index, i.e. the newsletter table of contents
267 PDF.Index.FontSize=12
268 PDF.Index.LineHeight=16
269 PDF.Index.FontFamily=helvetica
271 # how to format the meta-data, i.e. title, author, date
275 PDF.Meta.FontFamily=helvetica
277 # how to format the article description
279 PDF.Description.FontSize=12
280 PDF.Description.LineHeight=16
281 PDF.Description.FontFamily=helvetica
283 # how to format the article content
285 PDF.Content.FontSize=10
286 PDF.Content.LineHeight=16
287 PDF.Content.FontFamily=helvetica
289 # the formatting for images in gallery mode
291 PDF.BigImageCaption.FontSize=16
292 PDF.BigImageCaption.FontFamily=helvetica
294 # the formatting for the article source
296 PDF.Source.FontSize=12
297 PDF.Source.LineHeight=16
298 PDF.Source.FontFamily=courier
304 # the size paper your target audience will likely have in their printers. pick one of A4 or LETTER
309 # the number of Objects which can fit in your MRUCache
311 Global.Cache.Items=15
314 # edit with caution below this line
315 ######################################################################
323 # specify your database
327 Database.poolResetTime=1.0
328 Database.PoolLog=log/pool.log
330 Database.Username=postgres
332 Database.Host=localhost
336 # this sets the adaptor to be used
338 Database.Adaptor=mir.storage.DatabaseAdaptorPostgresql
341 # configuration for adaptor postgres
342 # In this example, "Mir" is the dbname
344 Adaptor.PostgreSQL.URL=jdbc:postgresql://localhost:5432/Mir
345 Adaptor.PostgreSQL.Driver=org.postgresql.Driver
348 # Servlet / Module configurations
351 # don't change this unless you really know your i18n.
352 # The default encoding charset used in the written html files as well
353 # as the dynamic output html.
354 # also used for the HTML charset meta tag.
355 Mir.DefaultEncoding=UTF8
357 # this encoding is used for the HTML charset meta tag.
358 # it must be the html charset equivalent of the Java encoding above
359 # don't change this unless...
360 Mir.DefaultHTMLCharset=UTF-8
365 Localizer.OpenSession.article.EditTemplate = editarticle.template
366 Localizer.OpenSession.article.DupeTemplate = dupearticle.template
367 Localizer.OpenSession.article.DoneTemplate = donearticle.template
368 Localizer.OpenSession.article.UnsupportedMediaTemplate = unsupportedmediatype.template
369 Localizer.OpenSession.comment.EditTemplate = editcomment.template
370 Localizer.OpenSession.comment.DupeTemplate = dupecomment.template
371 Localizer.OpenSession.comment.DoneTemplate = donecomment.template
372 Localizer.OpenSession.comment.UnsupportedMediaTemplate = unsupportedmediatype.template
373 Localizer.OpenSession.ErrorTemplate = sessionerror.template
379 # config used for OpenIndy
381 ServletModule.OpenIndy.CommentTemplate=comment.template
382 ServletModule.OpenIndy.CommentDoneTemplate=comment_done.template
383 ServletModule.OpenIndy.CommentDupeTemplate=comment_dupe.template
384 ServletModule.OpenIndy.PostingTemplate=posting.template
385 ServletModule.OpenIndy.PostingDoneTemplate=posting_done.template
386 ServletModule.OpenIndy.PostingDupeTemplate=posting_dupe.template
387 ServletModule.OpenIndy.PostingDisabledTemplate=posting_disabled.template
388 ServletModule.OpenIndy.SearchResultsTemplate=search_results.template
389 ServletModule.OpenIndy.PrepareMailTemplate=prepare_mail.template
390 ServletModule.OpenIndy.SentMailTemplate=sent_mail.template
391 ServletModule.OpenIndy.EmailIsFrom=mailer@somewhere.org
392 ServletModule.OpenIndy.SMTPServer=localhost
393 ServletModule.OpenIndy.ErrorTemplate=error.template
394 ServletModule.OpenIndy.UserErrorTemplate=usererror.template
398 Mir.TemplateDir=templates/admin/
400 Mir.LoginTemplate=login.template
401 Mir.StartTemplate=start_admin.template
403 Mir.ErrorTemplate=error.template
404 Mir.UserErrorTemplate=usererror.template
406 ServletModule.Themen.ConfirmTemplate=confirm.template
407 ServletModule.Themen.ObjektTemplate=topic.template
408 ServletModule.Themen.ListTemplate=topiclist.template
410 ServletModule.LinksImcs.ConfirmTemplate=confirm.template
411 ServletModule.LinksImcs.ObjektTemplate=linksimcs.template
412 ServletModule.LinksImcs.ListTemplate=linksimcslist.template
414 ServletModule.Users.ConfirmTemplate=confirm.template
415 ServletModule.Users.ObjektTemplate=user.template
416 ServletModule.Users.ListTemplate=userlist.template
418 ServletModule.Images.ConfirmTemplate=confirm.template
419 ServletModule.Images.ObjektTemplate=image.template
420 ServletModule.Images.ListTemplate=imagelist.template
422 ServletModule.Audio.ConfirmTemplate=confirm.template
423 ServletModule.Audio.ObjektTemplate=audio.template
424 ServletModule.Audio.ListTemplate=audiolist.template
426 ServletModule.Video.ConfirmTemplate=confirm.template
427 ServletModule.Video.ObjektTemplate=video.template
428 ServletModule.Video.ListTemplate=videolist.template
430 ServletModule.OtherMedia.ConfirmTemplate=confirm.template
431 ServletModule.OtherMedia.ObjektTemplate=media.template
432 ServletModule.OtherMedia.ListTemplate=medialist.template
434 ServletModule.Content.ConfirmTemplate=confirm.template
435 ServletModule.Content.ObjektTemplate=content.template
436 ServletModule.Content.ListTemplate=contentlist.template
438 ServletModule.Mediafolder.ConfirmTemplate=confirm.template
439 ServletModule.Mediafolder.ObjektTemplate=mediafolder.template
440 ServletModule.Mediafolder.ListTemplate=mediafolderlist.template
443 # config for ServletModuleComment - browsing/editing/deleting comments
444 ServletModule.Comment.ConfirmTemplate=confirm.template
445 ServletModule.Comment.ObjektTemplate=comment.template
446 ServletModule.Comment.ListTemplate=commentlist.template
449 # config for ServletModuleHidden - lists all hidden articles of one month
450 ServletModule.Hidden.ListTemplate=hiddenlist.template
453 # config for Breaking - browsing/editing/deleting breaking news
454 ServletModule.Breaking.ConfirmTemplate=confirm.template
455 ServletModule.Breaking.ObjektTemplate=breaking.template
456 ServletModule.Breaking.ListTemplate=breakinglist.template
459 # config for Breaking - editing text files
460 ServletModule.FileEdit.ConfirmTemplate=confirm.template
461 ServletModule.FileEdit.ObjektTemplate=fileedit.template
462 ServletModule.FileEdit.ListTemplate=fileeditlist.template
465 # config for messages - browsing/editing/deleting internal messages
466 ServletModule.Messages.ConfirmTemplate=confirm.template
467 ServletModule.Messages.ObjektTemplate=message.template
468 ServletModule.Messages.ListTemplate=messagelist.template
471 # config for languages - browsing/editing/deleting languages
472 ServletModule.Language.ConfirmTemplate=confirm.template
473 ServletModule.Language.ObjektTemplate=language.template
474 ServletModule.Language.ListTemplate=languagelist.template
477 # config for article type
478 ServletModule.ArticleType.ConfirmTemplate=confirm.template
479 ServletModule.ArticleType.EditTemplate=articletype.template
480 ServletModule.ArticleType.ListTemplate=articletypelist.template
483 # config for comment status
484 ServletModule.CommentStatus.ConfirmTemplate=confirm.template
485 ServletModule.CommentStatus.EditTemplate=commentstatus.template
486 ServletModule.CommentStatus.ListTemplate=commentstatuslist.template
489 # producer-related configs below
492 Producer.ExtLinkName=extlink.gif
493 Producer.IntLinkName=intlink.gif
494 Producer.MailLinkName=maillink.gif