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 #where to put the lucene index
55 Log.LogClass = mir.log.log4j.LoggerImpl
56 Log.log4j.ConfigurationFile = etc/log4j.properties
59 Mir.Localizer=mircoders.localizer.basic.MirBasicLocalizer
61 # The location of the producer specifiations
62 Mir.Localizer.ProducerConfigFile=etc/producer/producers.xml
64 # Settings for the admin login:
65 # If the default language is left empty, it will set the accept-language of
66 # the client browser as the default.
67 Mir.Login.DefaultLanguage=en
68 Mir.Login.Languages=en;nl;de;qu;tr;ay;es;eu
72 Mir.Localizer.Producer.GeneratorLibrary= default=freemarker(etc/producer/)
73 Mir.Localizer.Admin.GeneratorLibrary= default=freemarker(templates/admin/)
74 Mir.Localizer.OpenPosting.GeneratorLibrary= default=freemarker(etc/open/)
76 # How should the custom operations (hide etc) in article and comment lists
78 # 0 = links, 1 = checkboxes, 2 = a listbox
79 Mir.Localizer.Admin.ListOperationsFlavor=1
81 # Which producers need to be called after an article (resp. a comment) is posted
82 Mir.Localizer.OpenPosting.ContentProducers= media.new;articles.changed;startpage.generate;synchronization.run
83 Mir.Localizer.OpenPosting.CommentProducers= articles.changed;synchronization.run
85 # Which producers need to be called after the "produce all new" link is clicked from admin
86 Mir.Localizer.Producer.AllNewProducers= media.new;articles.changed;startpage.run;synchronization.run
89 #note that you can't make pdf's without making fo's
90 #this is actually now set in producers.xml
91 #but these summarize what is said in there for the benefit of OpenMir
95 #on-time-password-protection
98 #use rsync to mirror the website to a remote-host
100 Rsync.Script.Path=/var/www/bin/rsync-copy
102 # the maximum allowed size of an uploaded media file in KB.
103 MaxMediaUploadSize=20000
105 # the maximum number of allowed media items to upload at once.
106 ServletModule.OpenIndy.MaxMediaUploadItems=20
108 # the default number of media items to upload at once
109 ServletModule.OpenIndy.DefaultMediaUploadItems=1
117 # the url of the static site
118 Producer.ProductionHost=http://indy.code-fu.de
120 # Produrce.StorageRoot is the directory, in which
121 # the generated HTML pages will be stored
122 Producer.StorageRoot=/pub/Dokumente/Indymedia/de-tech/Mir/produced
124 # for FileEdit module
126 # where do we find the files? absolute path
127 ServletModule.FileEdit.FileDirectory=/pub/Dokumente/Indymedia/de-tech/Mir/produced
128 ServletModule.FileEdit.ExtFilter=inc
132 # DYNAMIC SITE CONFIG
135 # the url of the openposting-servlet
136 Producer.OpenAction=http://indy.code-fu.de/Mir/servlet/OpenMir
138 # use this property if the pages are not produced under the docRoot
139 # of the webserver. all links in the produced pages are prepended
140 # with Producer.DocRoot
143 Producer.ActionServlet=/servlet/Mir
145 # this is the name of the subdirectory where the image-dir
147 Producer.ImageRoot=/img
150 # the url of the video-server
151 Producer.Video.Host=http://indy.code-fu.de/video
153 # the url of the audio-server
154 Producer.Audio.Host=http://indy.code-fu.de/audio
156 # the url of the image-server
157 Producer.Image.Host=http://indy.code-fu.de/images
159 # the url of the media-server
160 Producer.Media.Host=http://indy.code-fu.de/media
162 # the url of the real-media-server
163 Producer.RealMedia.Host=rtsp://some.media.server/somedir/
166 # image specific storage directories
167 # absolute directory, where the images are saved
168 Producer.Image.Path=/pub/Dokumente/Indymedia/de-tech/Mir/produced/images/
170 # images will be scaled down so that the size (both widht and height) are below:
171 Producer.Image.MaxSize = 640
173 # icons will be generated so that the size (both width and height) are below:
174 Producer.Image.MaxIconSize = 120
177 # media specific storage directories
178 # absolute directory, where the media files are saved
179 Producer.Media.Path=/pub/Dokumente/Indymedia/de-tech/Mir/produced/media
181 # absolute directory, where the realmedia data files(ra and rm) are saved
182 # the ram files which point to the RealMedia.Host get saved in the regular Media dir
183 # this should make rsyncing to a separate streaming server much easier
184 Producer.RealMedia.Path=/pub/Dokumente/rtsp
186 # relativ directory, where the thumbnails will be saved
187 Producer.Image.IconPath=/icon
189 # Tiny Icons for the media types on the newswire summary.
190 # (right hand side of start page)
191 Producer.Icon.TinyImage=photo_small.gif
192 Producer.Icon.TinyAudio=audio_small.gif
193 Producer.Icon.TinyVideo=video_small.gif
194 Producer.Icon.TinyText=text_small.gif
196 #Medium sized icons used at various places
197 Producer.Icon.BigImage=photo_big.gif
198 Producer.Icon.BigAudio=audio_big.gif
199 Producer.Icon.BigVideo=video_big.gif
200 Producer.Icon.BigText=text_big.gif
202 #the style sheet used to turn html into xsl:fo
203 Producer.HTML2FOStyleSheet=/some/dir/mir/etc/producer/html2fo.xsl
207 # edit with caution below this line
208 ######################################################################
216 # specify your database
220 Database.poolResetTime=1.0
221 Database.PoolLog=log/pool.log
223 Database.Username=postgres
225 Database.Host=localhost
229 # this sets the adaptor to be used
231 Database.Adaptor=mir.storage.DatabaseAdaptorPostgresql
234 # configuration for adaptor postgres
235 # In this example, "Mir" is the dbname
237 Adaptor.PostgreSQL.URL=jdbc:postgresql://localhost:5432/Mir
238 Adaptor.PostgreSQL.Driver=org.postgresql.Driver
241 # should be explained .)
244 HTMLTemplateProcessor.Dir=
247 # Servlet / Module configurations
250 # don't change this unless you really know your i18n.
251 # The default encoding charset used in the written html files as well
252 # as the dynamic output html.
253 # also used for the HTML charset meta tag.
254 Mir.DefaultEncoding=UTF8
256 Mir.ErrorTemplate=templates/error.template
257 Mir.UserErrorTemplate=templates/usererror.template
258 Mir.LoginTemplate=templates/admin/login.template
260 ServletModule.Schwerpunkt.ConfirmTemplate=templates/admin/confirm.template
261 ServletModule.Schwerpunkt.ObjektTemplate=templates/admin/feature.template
262 ServletModule.Schwerpunkt.ListTemplate=templates/admin/featurelist.template
264 ServletModule.Feature.ConfirmTemplate=templates/admin/confirm.template
265 ServletModule.Feature.ObjektTemplate=templates/admin/schwerpunkt.template
266 ServletModule.Feature.ListTemplate=templates/admin/schwerpunktlist.template
268 ServletModule.Themen.ConfirmTemplate=templates/admin/confirm.template
269 ServletModule.Themen.ObjektTemplate=templates/admin/topic.template
270 ServletModule.Themen.ListTemplate=templates/admin/topiclist.template
272 ServletModule.LinksImcs.ConfirmTemplate=templates/admin/confirm.template
273 ServletModule.LinksImcs.ObjektTemplate=templates/admin/linksimcs.template
274 ServletModule.LinksImcs.ListTemplate=templates/admin/linksimcslist.template
276 ServletModule.Users.ConfirmTemplate=templates/admin/confirm.template
277 ServletModule.Users.ObjektTemplate=templates/admin/user.template
278 ServletModule.Users.ListTemplate=templates/admin/userlist.template
280 ServletModule.Images.ConfirmTemplate=templates/admin/confirm.template
281 ServletModule.Images.ObjektTemplate=templates/admin/image.template
282 ServletModule.Images.ListTemplate=templates/admin/imagelist.template
284 ServletModule.Audio.ConfirmTemplate=templates/admin/confirm.template
285 ServletModule.Audio.ObjektTemplate=templates/admin/audio.template
286 ServletModule.Audio.ListTemplate=templates/admin/audiolist.template
288 ServletModule.Video.ConfirmTemplate=templates/admin/confirm.template
289 ServletModule.Video.ObjektTemplate=templates/admin/video.template
290 ServletModule.Video.ListTemplate=templates/admin/videolist.template
292 ServletModule.OtherMedia.ConfirmTemplate=templates/admin/confirm.template
293 ServletModule.OtherMedia.ObjektTemplate=templates/admin/media.template
294 ServletModule.OtherMedia.ListTemplate=templates/admin/medialist.template
296 ServletModule.Content.ConfirmTemplate=templates/admin/confirm.template
297 ServletModule.Content.ObjektTemplate=content.template
298 ServletModule.Content.ListTemplate=contentlist.template
300 ServletModule.Mediafolder.ConfirmTemplate=templates/admin/confirm.template
301 ServletModule.Mediafolder.ObjektTemplate=templates/admin/mediafolder.template
302 ServletModule.Mediafolder.ListTemplate=templates/admin/mediafolderlist.template
305 # config used for OpenIndy
306 ServletModule.OpenIndy.CommentTemplate=etc/open/comment.template
307 ServletModule.OpenIndy.CommentDoneTemplate=etc/open/comment_done.template
308 ServletModule.OpenIndy.CommentDupeTemplate=etc/open/comment_dupe.template
309 ServletModule.OpenIndy.PostingTemplate=etc/open/posting.template
310 ServletModule.OpenIndy.PostingDoneTemplate=etc/open/posting_done.template
311 ServletModule.OpenIndy.PostingDupeTemplate=etc/open/posting_dupe.template
312 ServletModule.OpenIndy.SearchResultsTemplate=etc/open/search_results.template
313 ServletModule.OpenIndy.PrepareMailTemplate=etc/open/prepare_mail.template
314 ServletModule.OpenIndy.SentMailTemplate=etc/open/sent_mail.template
315 ServletModule.OpenIndy.EmailIsFrom=mailer@somewhere.org
316 ServletModule.OpenIndy.SMTPServer=localhost
319 # config for ServletModuleComment - browsing/editing/deleting comments
320 ServletModule.Comment.ConfirmTemplate=templates/admin/confirm.template
321 ServletModule.Comment.ObjektTemplate=templates/admin/comment.template
322 ServletModule.Comment.ListTemplate=templates/admin/commentlist.template
325 # config for ServletModuleHidden - lists all hidden articles of one month
326 ServletModule.Hidden.ListTemplate=templates/admin/hiddenlist.template
329 # config for Breaking - browsing/editing/deleting breaking news
330 ServletModule.Breaking.ConfirmTemplate=templates/admin/confirm.template
331 ServletModule.Breaking.ObjektTemplate=templates/admin/breaking.template
332 ServletModule.Breaking.ListTemplate=templates/admin/breakinglist.template
335 # config for Breaking - editing text files
336 ServletModule.FileEdit.ConfirmTemplate=templates/admin/confirm.template
337 ServletModule.FileEdit.ObjektTemplate=templates/admin/fileedit.template
338 ServletModule.FileEdit.ListTemplate=templates/admin/fileeditlist.template
341 # config for messages - browsing/editing/deleting internal messages
342 ServletModule.Messages.ConfirmTemplate=templates/admin/confirm.template
343 ServletModule.Messages.ObjektTemplate=templates/admin/message.template
344 ServletModule.Messages.ListTemplate=templates/admin/messagelist.template
347 # config for languages - browsing/editing/deleting languages
348 ServletModule.Language.ConfirmTemplate=templates/admin/confirm.template
349 ServletModule.Language.ObjektTemplate=templates/admin/language.template
350 ServletModule.Language.ListTemplate=templates/admin/languagelist.template
353 # config for article type
354 ServletModule.ArticleType.ConfirmTemplate=templates/admin/confirm.template
355 ServletModule.ArticleType.EditTemplate=templates/admin/articletype.template
356 ServletModule.ArticleType.ListTemplate=templates/admin/articletypelist.template
359 # config for comment status
360 ServletModule.CommentStatus.ConfirmTemplate=templates/admin/confirm.template
361 ServletModule.CommentStatus.EditTemplate=templates/admin/commentstatus.template
362 ServletModule.CommentStatus.ListTemplate=templates/admin/commentstatuslist.template
365 # producer-related configs below
368 Producer.ExtLinkName=extlink.gif
369 Producer.IntLinkName=intlink.gif
370 Producer.MailLinkName=maillink.gif