#
# Sample config for Mir
# by Matthias <mjordan@code-fu.de> 2001-09-12
-#
+#
# The Mir software realizes a semi-dynamic web service:
# The web server that is accessed by users has pure static
# pages. These pages are generated by the Mir software that
# Mir uses a database server to store the data that is needed to
# build the static site.
# So there are basically three parts in this config file:
-#
+#
# a) general setup
# b) static site config
# c) dynamic admin site
# d) database config
-#
+#
# edit this to suit your needs (here with sampleuser idfx)
# After you edited this file, build.sh has to be invoked.
# To be sure, also restart Tomcat.
-#
+#
# Note that for Mir to work, Tomcat has to be set up to handle all
# URLs that begin with /servlet. All other URLs are handled by Apache.
+#
+# The setup uses the following assumptions:
+# The URL to reach the site is http://indy.code-fu.de
+# The DocumentRoot of this URL is /pub/Dokumente/Indymedia/de-tech/Mir
+# All data is located below this directory, including the servlets.
+
+
#
# GENERAL SETUP
#
+Mir.Version=localizer-0
ClearXslCache=no
StandardLanguage=de
DirectOpenposting=yes
+Mir.Localizer=mircoders.localizer.basic.MirBasicLocalizer
+Mir.Localizer.Logfile=log/localizer.log
+Mir.Localizer.ProducerConfigFile=templates/producer/producers.xml
+
+
+
+#note that you can't make pdf's without making fo's
+GenerateFO=yes
+GeneratePDF=yes
+
+#on-time-password-protection
+PasswdProtection=no
+#use rsync to mirror the website to a remote-host
+Rsync=no
+Rsync.Script.Path=/var/www/bin/rsync-copy
+
+# the maximum allowed size of an uploaded media file in KB.
+MaxMediaUploadSize=20000
+
+# the maximum number of allowed media items to upload at once.
+ServletModule.OpenIndy.MaxMediaUploadItems=20
#
#
# the url of the static site
Producer.ProductionHost=http://indy.code-fu.de
-# The above URL points to the following directory, in which
+# Produrce.StorageRoot is the directory, in which
# the generated HTML pages will be stored
Producer.StorageRoot=/pub/Dokumente/Indymedia/de-tech/Mir/produced
-
-
+# for FileEdit module
+#
+# where do we find the files? absolute path
+ServletModule.FileEdit.FileDirectory=/pub/Dokumente/Indymedia/de-tech/Mir/produced
+ServletModule.FileEdit.ExtFilter=inc
#
#
-# DYNAMIC SITE CONFIG
+# DYNAMIC SITE CONFIG
#
-# Home is the directory in which the compiled Java binaries are stored.
-# Think of it as "install directory" of Mir.
-# This collection of binaries is also referred to as "webapp" in Tomcat
-# terms.
-# Because Mir is a collection of servlets, Tomcat has to know where the
-# servlets reside. So you have to add a link to the below directory in the
-# webapps directory of Tomcat:
-# cd /usr/share/tomcat/webapps ; ln -s $Home Mir
-# where $Home is the below directory and Mir is the first directory level
-# in HTMLTemplateProcessor.ActionRoot
-Home=/pub/Dokumente/Indymedia/de-tech/Mir/
-
-# The following item is the class that is to be invoked by Tomcat for admin
-# maintainance. It is relative to the webapps directory in Tomcat.
-# To determine what class file is to be loaded, start in the webapps
-# directory. In the following config item, replace "/servlet/" by
-# "/WEB-INF/classes/" and append ".class". This is the name of the class
-# file to be executed.
-HTMLTemplateProcessor.ActionRoot=/Mir/servlet/Mir
-
-HTMLTemplateProcessor.DocRoot=/Mir
-
# the url of the openposting-servlet
Producer.OpenAction=http://indy.code-fu.de/Mir/servlet/OpenMir
-# fill this variable if the pages should not be saved directly
-# in the Producer.StorageRoot. then the pages will be saved
-# in this subdirectory
+# use this property if the pages are not produced under the docRoot
+# of the webserver. all links in the produced pages are prepended
+# with Producer.DocRoot
Producer.DocRoot=
# this is the name of the subdirectory where the image-dir
# will be linked to.
-Producer.ImageRoot=img
+Producer.ImageRoot=/img
-# the url of the image-server (is this true?)
-Producer.ImageHost=http://indy.code-fu.de/images
# the url of the video-server
-Producer.VideoHost=http://indy.code-fu.de/video
+Producer.Video.Host=http://indy.code-fu.de/video
# the url of the audio-server
-Producer.AudioHost=http://indy.code-fu.de/audio
+Producer.Audio.Host=http://indy.code-fu.de/audio
# the url of the image-server
Producer.Image.Host=http://indy.code-fu.de/images
+# the url of the media-server
+Producer.Media.Host=http://indy.code-fu.de/media
+
+# the url of the real-media-server
+Producer.RealMedia.Host=rtsp://some.media.server/somedir/
+
+
# image specific storage directories
# absolute directory, where the images are saved
-Producer.Image.Path=/pub/Dokumente/Indymedia/de-tech/Mir/produced/images
+Producer.Image.Path=/pub/Dokumente/Indymedia/de-tech/Mir/produced/images/
+
+# media specific storage directories
+# absolute directory, where the media files are saved
+Producer.Media.Path=/pub/Dokumente/Indymedia/de-tech/Mir/produced/media
+
+# absolute directory, where the realmedia data files(ra and rm) are saved
+# the ram files which point to the RealMedia.Host get saved in the regular Media dir
+# this should make rsyncing to a separate streaming server much easier
+Producer.RealMedia.Path=/pub/Dokumente/rtsp
# relativ directory, where the thumbnails will be saved
Producer.Image.IconPath=/icon
+# Tiny Icons for the media types on the newswire summary.
+# (right hand side of start page)
+Producer.Icon.TinyImage=photo_small.gif
+Producer.Icon.TinyAudio=audio_small.gif
+Producer.Icon.TinyVideo=video_small.gif
+Producer.Icon.TinyText=text_small.gif
+
+#Medium sized icons used at various places
+Producer.Icon.BigImage=photo_big.gif
+Producer.Icon.BigAudio=audio_big.gif
+Producer.Icon.BigVideo=video_big.gif
+Producer.Icon.BigText=text_big.gif
+
#
Database.Username=postgres
Database.Password=
Database.Host=localhost
+Database.Name=Mir
#
# this sets the adaptor to be used
#
# configuration for adaptor mysql
-# In this example, "mir" is the dbname
+# In this example, "Mir" is the dbname
Adaptor.MySQL.URL=jdbc:mysql://localhost:3306/Mir
Adaptor.MySQL.Driver=org.gjt.mm.mysql.Driver
#
# configuration for adaptor postgres
+# In this example, "Mir" is the dbname
Adaptor.PostgreSQL.URL=jdbc:postgresql://localhost:5432/Mir
Adaptor.PostgreSQL.Driver=org.postgresql.Driver
ServletModule.Producer.Logfile=log/producer.log
Entity.Logfile=log/dbentity.log
-
#
# Servlet / Module configurations
#
+# don't change this unless you really know your i18n.
+# The default encoding charset used in the written html files as well
+# as the dynamic output html.
+# also used for the HTML charset meta tag.
+Mir.DefaultEncoding=ISO8859_1
Mir.Logfile=log/mir.log
-Mir.ErrorTemplate=fehler.template
+Mir.ErrorTemplate=error.template
+Mir.UserErrorTemplate=usererror.template
+Mir.LoginTemplate=admin/login.template
-ServletModule.Schwerpunkt.ConfirmTemplate=confirm.template
-ServletModule.Schwerpunkt.ObjektTemplate=schwerpunkt.template
-ServletModule.Schwerpunkt.ListTemplate=schwerpunktlist.template
+ServletModule.Schwerpunkt.ConfirmTemplate=admin/confirm.template
+ServletModule.Schwerpunkt.ObjektTemplate=admin/feature.template
+ServletModule.Schwerpunkt.ListTemplate=admin/featurelist.template
ServletModule.Schwerpunkt.Logfile=log/mir.log
Module.Schwerpunkt.Logfile=log/mir.log
-ServletModule.Feature.ConfirmTemplate=confirm.template
-ServletModule.Feature.ObjektTemplate=schwerpunkt.template
-ServletModule.Feature.ListTemplate=schwerpunktlist.template
+ServletModule.Feature.ConfirmTemplate=admin/confirm.template
+ServletModule.Feature.ObjektTemplate=admin/schwerpunkt.template
+ServletModule.Feature.ListTemplate=admin/schwerpunktlist.template
ServletModule.Feature.Logfile=log/mir.log
Module.Feature.Logfile=log/mir.log
-ServletModule.Themen.ConfirmTemplate=confirm.template
-ServletModule.Themen.ObjektTemplate=themen.template
-ServletModule.Themen.ListTemplate=themenlist.template
+ServletModule.Themen.ConfirmTemplate=admin/confirm.template
+ServletModule.Themen.ObjektTemplate=admin/topic.template
+ServletModule.Themen.ListTemplate=admin/topiclist.template
ServletModule.Themen.Logfile=log/mir.log
Module.Themen.Logfile=log/mir.log
-ServletModule.LinksImcs.ConfirmTemplate=confirm.template
-ServletModule.LinksImcs.ObjektTemplate=linksimcs.template
-ServletModule.LinksImcs.ListTemplate=linksimcslist.template
+ServletModule.LinksImcs.ConfirmTemplate=admin/confirm.template
+ServletModule.LinksImcs.ObjektTemplate=admin/linksimcs.template
+ServletModule.LinksImcs.ListTemplate=admin/linksimcslist.template
ServletModule.LinksImcs.Logfile=log/mir.log
Module.LinksImcs.Logfile=log/mir.log
-ServletModule.Gruppen.ConfirmTemplate=confirm.template
-ServletModule.Gruppen.ObjektTemplate=gruppen.template
-ServletModule.Gruppen.ListTemplate=gruppenlist.template
-ServletModule.Gruppen.Logfile=log/mir.log
-Module.Gruppen.Logfile=log/mir.log
-
-ServletModule.Users.ConfirmTemplate=confirm.template
-ServletModule.Users.ObjektTemplate=users.template
-ServletModule.Users.ListTemplate=userslist.template
+ServletModule.Users.ConfirmTemplate=admin/confirm.template
+ServletModule.Users.ObjektTemplate=admin/user.template
+ServletModule.Users.ListTemplate=admin/userlist.template
ServletModule.Users.Logfile=log/mir.log
Module.Users.Logfile=log/mir.log
-ServletModule.Bilder.ConfirmTemplate=confirm.template
-ServletModule.Bilder.ObjektTemplate=bilder.template
-ServletModule.Bilder.ListTemplate=bilderlist.template
-ServletModule.Bilder.Logfile=log/mir.log
-Module.Bilder.Logfile=log/mir.log
+ServletModule.Images.ConfirmTemplate=admin/confirm.template
+ServletModule.Images.ObjektTemplate=admin/image.template
+ServletModule.Images.ListTemplate=admin/imagelist.template
+ServletModule.Images.Logfile=log/mir.log
+Module.Images.Logfile=log/mir.log
+
+Module.UploadedMedia.Logfile=log/mir.log
+
+ServletModule.Audio.ConfirmTemplate=admin/confirm.template
+ServletModule.Audio.ObjektTemplate=admin/audio.template
+ServletModule.Audio.ListTemplate=admin/audiolist.template
+ServletModule.Audio.Logfile=log/mir.log
+
+ServletModule.Video.ConfirmTemplate=admin/confirm.template
+ServletModule.Video.ObjektTemplate=admin/video.template
+ServletModule.Video.ListTemplate=admin/videolist.template
+ServletModule.Video.Logfile=log/mir.log
+
+ServletModule.OtherMedia.ConfirmTemplate=admin/confirm.template
+ServletModule.OtherMedia.ObjektTemplate=admin/media.template
+ServletModule.OtherMedia.ListTemplate=admin/medialist.template
+ServletModule.OtherMedia.Logfile=log/mir.log
-ServletModule.Content.ConfirmTemplate=confirm.template
-ServletModule.Content.ObjektTemplate=content.template
-ServletModule.Content.OpTemplate=oplist.template
-ServletModule.Content.ListTemplate=contentlist.template
+ServletModule.Content.ConfirmTemplate=admin/confirm.template
+ServletModule.Content.ObjektTemplate=admin/content.template
+ServletModule.Content.ListTemplate=admin/contentlist.template
ServletModule.Content.Logfile=log/mir.log
Module.Content.Logfile=log/mir.log
-ServletModule.Mediafolder.ConfirmTemplate=confirm.template
-ServletModule.Mediafolder.ObjektTemplate=mediafolder.template
-ServletModule.Mediafolder.ListTemplate=mediafolderlist.template
+ServletModule.Mediafolder.ConfirmTemplate=admin/confirm.template
+ServletModule.Mediafolder.ObjektTemplate=admin/mediafolder.template
+ServletModule.Mediafolder.ListTemplate=admin/mediafolderlist.template
ServletModule.Mediafolder.Logfile=log/mir.log
Module.Mediafolder.Logfile=log/mir.log
# config used for OpenIndy
ServletModule.OpenIndy.CommentTemplate=open/comment.template
ServletModule.OpenIndy.CommentDoneTemplate=open/comment_done.template
+ServletModule.OpenIndy.CommentDupeTemplate=open/comment_dupe.template
ServletModule.OpenIndy.PostingTemplate=open/posting.template
ServletModule.OpenIndy.PostingDoneTemplate=open/posting_done.template
+ServletModule.OpenIndy.PostingDupeTemplate=open/posting_dupe.template
ServletModule.OpenIndy.Logfile=log/openindy.log
#
# config for ServletModuleComment - browsing/editing/deleting comments
Module.Comment.Logfile=log/comment.log
ServletModule.Comment.Logfile=log/comment.log
-ServletModule.Comment.ConfirmTemplate=confirm.template
-ServletModule.Comment.ObjektTemplate=comment.template
-ServletModule.Comment.ListTemplate=commentlist.template
+ServletModule.Comment.ConfirmTemplate=admin/confirm.template
+ServletModule.Comment.ObjektTemplate=admin/comment.template
+ServletModule.Comment.ListTemplate=admin/commentlist.template
+
+#
+# config for ServletModuleHidden - lists all hidden articles of one month
+ServletModule.Hidden.Logfile=log/hidden.log
+ServletModule.Hidden.ListTemplate=admin/hiddenlist.template
+
#
# config for Breaking - browsing/editing/deleting breaking news
Module.Breaking.Logfile=log/breaking.log
ServletModule.Breaking.Logfile=log/comment.log
-ServletModule.Breaking.ConfirmTemplate=confirm.template
-ServletModule.Breaking.ObjektTemplate=breaking.template
-ServletModule.Breaking.ListTemplate=breakinglist.template
+ServletModule.Breaking.ConfirmTemplate=admin/confirm.template
+ServletModule.Breaking.ObjektTemplate=admin/breaking.template
+ServletModule.Breaking.ListTemplate=admin/breakinglist.template
+
+#
+# config for Breaking - editing text files
+ServletModule.FileEdit.Logfile=log/fileedit.log
+ServletModule.FileEdit.ConfirmTemplate=admin/confirm.template
+ServletModule.FileEdit.ObjektTemplate=admin/fileedit.template
+ServletModule.FileEdit.ListTemplate=admin/fileeditlist.template
+
#
# config for messages - browsing/editing/deleting internal messages
Module.Messages.Logfile=log/message.log
ServletModule.Messages.Logfile=log/comment.log
-ServletModule.Messages.ConfirmTemplate=confirm.template
-ServletModule.Messages.ObjektTemplate=message.template
-ServletModule.Messages.ListTemplate=messagelist.template
+ServletModule.Messages.ConfirmTemplate=admin/confirm.template
+ServletModule.Messages.ObjektTemplate=admin/message.template
+ServletModule.Messages.ListTemplate=admin/messagelist.template
#
-# config for languages - browsing/editing/deleting internal messages
+# config for languages - browsing/editing/deleting languages
Module.Language.Logfile=log/message.log
ServletModule.Language.Logfile=log/mir.log
-ServletModule.Language.ConfirmTemplate=confirm.template
-ServletModule.Language.ObjektTemplate=language.template
-ServletModule.Language.ListTemplate=languagelist.template
+ServletModule.Language.ConfirmTemplate=admin/confirm.template
+ServletModule.Language.ObjektTemplate=admin/language.template
+ServletModule.Language.ListTemplate=admin/languagelist.template
+
#
# producer-related configs below
Producer.Navigation.Template=producer/navigation.template
Producer.Content.Template=producer/content.template
-Producer.Content.Batchsize=20
+Producer.Content.Batchsize=10
+
+Producer.PrintableContent.Template=producer/printablecontent.template
+Producer.PrintableContent.html2foStyleSheetName=producer/html2fo.xsl
Producer.Startseite.Template=producer/startseite.template
Producer.Startseite.Entries=7
Producer.FeatureList.Template=producer/featurelist.template
Producer.StartPage.Template=producer/startpage.template
+Producer.FeaturesRSS.Template=producer/featuresRSS.template
Producer.StartPage.Items=10
Producer.StartPage.Newswire=30
-Producer.Wap.Template=producer/wap.template
-Producer.Wap.Items=10
+
+# todo: do we need those?
Xsl.Content=producer/content.xsl
Xsl.Fo.Content=producer/frontpage_fo.xsl
Xsl.TopicList=producer/topic.xsl
Xsl.OpenList=producer/open.xsl
Xsl.Wap=producer/wml2.xsl
-
-Sync.Script.Path=/var/www/bin/rsync-copy