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
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
56 # The time the cookie will remain active in hours
58 Abuse.CookieMaxAge=168
61 #where to put the lucene index
66 Log.LogClass = mir.log.log4j.LoggerImpl
67 Log.log4j.ConfigurationFile = etc/log4j.properties
70 Mir.Localizer=mircoders.localizer.basic.MirBasicLocalizer
72 # The location of the producer specifiations
73 Mir.Localizer.ProducerConfigFile=etc/producer/producers.xml
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
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/)
87 # How should the custom operations (hide etc) in article and comment lists
89 # 0 = links, 1 = checkboxes, 2 = a listbox
90 Mir.Localizer.Admin.ListOperationsFlavor=1
92 # How should the topics be presented on the article edit page?
93 # 0 = in a multiselect list box, 1 = checkboxes
94 Mir.Localizer.Admin.TopicListFlavor=1
96 # For the checkboxes flavour, how many columns should there be?
97 Mir.Localizer.Admin.TopicListColumns=3
99 # In which order should the topic appear?
100 Mir.Localizer.Admin.TopicListOrder=title
102 # Which producers need to be called after an article (resp. a comment) is posted
103 Mir.Localizer.OpenPosting.ContentProducers= media.new;articles.changed;startpage.generate;synchronization.run
104 Mir.Localizer.OpenPosting.CommentProducers= articles.changed;synchronization.run
106 # Which producers need to be called after the "produce all new" link is clicked from admin
107 Mir.Localizer.Producer.AllNewProducers= media.new;articles.changed;startpage.run;synchronization.run
110 #note that you can't make pdf's without making fo's
111 #this is actually now set in producers.xml
112 #but these summarize what is said in there for the benefit of OpenMir
116 #use rsync to mirror the website to a remote-host
118 Rsync.Script.Path=/var/www/bin/rsync-copy
120 # the maximum allowed size of an uploaded media file in KB.
121 MaxMediaUploadSize=20000
123 # the maximum number of allowed media items to upload at once.
124 ServletModule.OpenIndy.MaxMediaUploadItems=20
126 # the default number of media items to upload at once
127 ServletModule.OpenIndy.DefaultMediaUploadItems=1
135 # the url of the static site
136 Producer.ProductionHost=http://indy.code-fu.de
138 # Produrce.StorageRoot is the directory, in which
139 # the generated HTML pages will be stored
140 Producer.StorageRoot=/pub/Dokumente/Indymedia/de-tech/Mir/produced
142 # for FileEdit module
144 # where do we find the files? absolute path
145 ServletModule.FileEdit.FileDirectory=/pub/Dokumente/Indymedia/de-tech/Mir/produced
146 ServletModule.FileEdit.ExtFilter=.*\.inc$
147 ServletModule.FileEdit.Recursive=0
151 # DYNAMIC SITE CONFIG
154 # the url of the openposting-servlet
155 Producer.OpenAction=http://indy.code-fu.de/Mir/servlet/OpenMir
157 # use this property if the pages are not produced under the docRoot
158 # of the webserver. all links in the produced pages are prepended
159 # with Producer.DocRoot
162 Producer.ActionServlet=/servlet/Mir
164 # this is the name of the subdirectory where the image-dir
166 Producer.ImageRoot=/img
169 # the url of the video-server
170 Producer.Video.Host=http://indy.code-fu.de/video
172 # the url of the audio-server
173 Producer.Audio.Host=http://indy.code-fu.de/audio
175 # the url of the image-server
176 Producer.Image.Host=http://indy.code-fu.de/images
178 # the url of the media-server
179 Producer.Media.Host=http://indy.code-fu.de/media
181 # the url of the real-media-server
182 Producer.RealMedia.Host=rtsp://some.media.server/somedir/
185 # image specific storage directories
186 # absolute directory, where the images are saved
187 Producer.Image.Path=/pub/Dokumente/Indymedia/de-tech/Mir/produced/images/
189 # images will be scaled down so that the size (both widht and height) are below:
190 Producer.Image.MaxSize = 640
192 # icons will be generated so that the size (both width and height) are below:
193 Producer.Image.MaxIconSize = 120
196 # media specific storage directories
197 # absolute directory, where the media files are saved
198 Producer.Media.Path=/pub/Dokumente/Indymedia/de-tech/Mir/produced/media
200 # absolute directory, where the realmedia data files(ra and rm) are saved
201 # the ram files which point to the RealMedia.Host get saved in the regular Media dir
202 # this should make rsyncing to a separate streaming server much easier
203 Producer.RealMedia.Path=/pub/Dokumente/rtsp
205 # relativ directory, where the thumbnails will be saved
206 Producer.Image.IconPath=/icon
208 # Tiny Icons for the media types on the newswire summary.
209 # (right hand side of start page)
210 Producer.Icon.TinyImage=photo_small.gif
211 Producer.Icon.TinyAudio=audio_small.gif
212 Producer.Icon.TinyVideo=video_small.gif
213 Producer.Icon.TinyText=text_small.gif
215 #Medium sized icons used at various places
216 Producer.Icon.BigImage=photo_big.gif
217 Producer.Icon.BigAudio=audio_big.gif
218 Producer.Icon.BigVideo=video_big.gif
219 Producer.Icon.BigText=text_big.gif
221 #the style sheet used to turn html into xsl:fo
222 Producer.HTML2FOStyleSheet=/some/dir/mir/etc/producer/html2fo.xsl
226 # edit with caution below this line
227 ######################################################################
235 # specify your database
239 Database.poolResetTime=1.0
240 Database.PoolLog=log/pool.log
242 Database.Username=postgres
244 Database.Host=localhost
248 # this sets the adaptor to be used
250 Database.Adaptor=mir.storage.DatabaseAdaptorPostgresql
253 # configuration for adaptor postgres
254 # In this example, "Mir" is the dbname
256 Adaptor.PostgreSQL.URL=jdbc:postgresql://localhost:5432/Mir
257 Adaptor.PostgreSQL.Driver=org.postgresql.Driver
260 # Servlet / Module configurations
263 # don't change this unless you really know your i18n.
264 # The default encoding charset used in the written html files as well
265 # as the dynamic output html.
266 # also used for the HTML charset meta tag.
267 Mir.DefaultEncoding=UTF8
272 # config used for OpenIndy
274 OpenMir.TemplateDir=etc/open/
275 ServletModule.OpenIndy.CommentTemplate=comment.template
276 ServletModule.OpenIndy.CommentDoneTemplate=comment_done.template
277 ServletModule.OpenIndy.CommentDupeTemplate=comment_dupe.template
278 ServletModule.OpenIndy.PostingTemplate=posting.template
279 ServletModule.OpenIndy.PostingDoneTemplate=posting_done.template
280 ServletModule.OpenIndy.PostingDupeTemplate=posting_dupe.template
281 ServletModule.OpenIndy.PostingDisabledTemplate=posting_disabled.template
282 ServletModule.OpenIndy.SearchResultsTemplate=search_results.template
283 ServletModule.OpenIndy.PrepareMailTemplate=prepare_mail.template
284 ServletModule.OpenIndy.SentMailTemplate=sent_mail.template
285 ServletModule.OpenIndy.EmailIsFrom=mailer@somewhere.org
286 ServletModule.OpenIndy.SMTPServer=localhost
287 ServletModule.OpenIndy.ErrorTemplate=error.template
288 ServletModule.OpenIndy.UserErrorTemplate=usererror.template
292 Mir.TemplateDir=templates/admin/
294 Mir.LoginTemplate=login.template
296 Mir.ErrorTemplate=error.template
297 Mir.UserErrorTemplate=usererror.template
299 ServletModule.Themen.ConfirmTemplate=confirm.template
300 ServletModule.Themen.ObjektTemplate=topic.template
301 ServletModule.Themen.ListTemplate=topiclist.template
303 ServletModule.LinksImcs.ConfirmTemplate=confirm.template
304 ServletModule.LinksImcs.ObjektTemplate=linksimcs.template
305 ServletModule.LinksImcs.ListTemplate=linksimcslist.template
307 ServletModule.Users.ConfirmTemplate=confirm.template
308 ServletModule.Users.ObjektTemplate=user.template
309 ServletModule.Users.ListTemplate=userlist.template
311 ServletModule.Images.ConfirmTemplate=confirm.template
312 ServletModule.Images.ObjektTemplate=image.template
313 ServletModule.Images.ListTemplate=imagelist.template
315 ServletModule.Audio.ConfirmTemplate=confirm.template
316 ServletModule.Audio.ObjektTemplate=audio.template
317 ServletModule.Audio.ListTemplate=audiolist.template
319 ServletModule.Video.ConfirmTemplate=confirm.template
320 ServletModule.Video.ObjektTemplate=video.template
321 ServletModule.Video.ListTemplate=videolist.template
323 ServletModule.OtherMedia.ConfirmTemplate=confirm.template
324 ServletModule.OtherMedia.ObjektTemplate=media.template
325 ServletModule.OtherMedia.ListTemplate=medialist.template
327 ServletModule.Content.ConfirmTemplate=confirm.template
328 ServletModule.Content.ObjektTemplate=content.template
329 ServletModule.Content.ListTemplate=contentlist.template
331 ServletModule.Mediafolder.ConfirmTemplate=confirm.template
332 ServletModule.Mediafolder.ObjektTemplate=mediafolder.template
333 ServletModule.Mediafolder.ListTemplate=mediafolderlist.template
336 # config for ServletModuleComment - browsing/editing/deleting comments
337 ServletModule.Comment.ConfirmTemplate=confirm.template
338 ServletModule.Comment.ObjektTemplate=comment.template
339 ServletModule.Comment.ListTemplate=commentlist.template
342 # config for ServletModuleHidden - lists all hidden articles of one month
343 ServletModule.Hidden.ListTemplate=hiddenlist.template
346 # config for Breaking - browsing/editing/deleting breaking news
347 ServletModule.Breaking.ConfirmTemplate=confirm.template
348 ServletModule.Breaking.ObjektTemplate=breaking.template
349 ServletModule.Breaking.ListTemplate=breakinglist.template
352 # config for Breaking - editing text files
353 ServletModule.FileEdit.ConfirmTemplate=confirm.template
354 ServletModule.FileEdit.ObjektTemplate=fileedit.template
355 ServletModule.FileEdit.ListTemplate=fileeditlist.template
358 # config for messages - browsing/editing/deleting internal messages
359 ServletModule.Messages.ConfirmTemplate=confirm.template
360 ServletModule.Messages.ObjektTemplate=message.template
361 ServletModule.Messages.ListTemplate=messagelist.template
364 # config for languages - browsing/editing/deleting languages
365 ServletModule.Language.ConfirmTemplate=confirm.template
366 ServletModule.Language.ObjektTemplate=language.template
367 ServletModule.Language.ListTemplate=languagelist.template
370 # config for article type
371 ServletModule.ArticleType.ConfirmTemplate=confirm.template
372 ServletModule.ArticleType.EditTemplate=articletype.template
373 ServletModule.ArticleType.ListTemplate=articletypelist.template
376 # config for comment status
377 ServletModule.CommentStatus.ConfirmTemplate=confirm.template
378 ServletModule.CommentStatus.EditTemplate=commentstatus.template
379 ServletModule.CommentStatus.ListTemplate=commentstatuslist.template
382 # producer-related configs below
385 Producer.ExtLinkName=extlink.gif
386 Producer.IntLinkName=intlink.gif
387 Producer.MailLinkName=maillink.gif