2 # Sample config for Mir
3 # by Matthias <mjordan@code-fu.de> 2001-09-12
4 # reorganized by <init@nadir.org> 2003-02-12
6 # The Mir software realizes a semi-dynamic web service:
7 # The web server that is accessed by readers has pure static
8 # pages. These pages are generated by the Mir software that
9 # consists of a collection of Java servlets and HTML templates.
11 # Mir uses a database server to store the data that is needed to
12 # build the static site.
13 # So there are basically three parts in this config file:
15 # a) general & admin setup
16 # b) static site config
20 # edit this to suit your needs
21 # After editing this file, two steps need to be taken to make the changes effective:
22 # 1. ant has to be invoked.
23 # 2. tomcat needs to be restarted.
25 # This file only contains the properties that are most often changed. To view all
26 # possible config values, refer to the file default.properties, located in the
27 # source directory. Don't change settings in default.properties however, instead
30 # Note: for filename values, by default, files are used relative to the servlet's
33 # The setup uses the following assumptions:
34 # The URL to reach the site is http://mir.someserver.org
35 # The StorageRoot of this URL is /var/www/project/site/
36 # All produced pages and media are located below this directory.
38 ################################################
39 ############ A) GENERAL SETUP ##############
40 ################################################
42 # mir/project an contact information
43 # for display on the site
45 Mir.Name=mir.someserver.org
48 Mir.Contact-email.address=mir-project@somemailserver.org
49 Mir.Contact-email.name=mir-project mailinglist
51 Mir.Tech-email.address=mir-admins@somemailserver.org
52 Mir.Tech-email.name=mir-admins mailinglist
54 Mir.Public-email.address=project@somemailserver.org
55 Mir.Public-email.name=project mailinglist
57 # Default timezone to display times in in admin, producers
58 # use CET for Central European Time (Paris, Amsterdam)
59 # more timezones here: http://www.postgresql.org/docs/7.2/static/timezones.html
61 Mir.DefaultTimezone= UTC
63 # Default date/time format
64 # For the syntax of the format, refer to
65 # http://java.sun.com/j2se/1.3/docs/api/java/text/SimpleDateFormat.html
66 Mir.DefaultDateTimeFormat = yyyy-MM-dd HH:mm
68 # For missing values, the FallbackLanguage is used as default
70 Mir.Admin.FallbackLanguage=en
72 #################################
73 # admin interface configuration #
74 #################################
76 # Settings for the admin login:
77 # If the default language is left empty, it will set the accept-language of
78 # the client browser as the default.
80 Mir.Login.DefaultLanguage=en
81 Mir.Login.Languages=en;de;fr;nl;es;pt;eu;sv;tr;zh;gz
83 # Show who's logged in?
85 Mir.Admin.ShowLoggedinUsers=1
87 # enable deletion of comments/articles?
89 Mir.Localizer.Admin.AllowDeleteComment=1
90 Mir.Localizer.Admin.AllowDeleteArticle=1
92 #######################
93 # automated producers #
94 #######################
96 # Which producers need to be called after an article is posted
98 Mir.Localizer.OpenPosting.ContentProducers= \
99 media.new;articles.changed;startpage.generate;synchronization.run
101 # Which producers need to be called after a comment is posted
103 Mir.Localizer.OpenPosting.CommentProducers= \
104 articles.changed;synchronization.run
106 # Which producers need to be called after the "produce all new" link is clicked from admin
108 Mir.Localizer.Producer.AllNewProducers= \
109 media.new;articles.changed;startpage.run;synchronization.run
115 #use rsync to mirror the website to a remote-host
118 Rsync.Script.Path=/var/www/bin/rsync-copy.sh
125 # for extra flexibility editors can edit text-files from within the admin-interface
126 # these files can then be included in webpages using SSI as footer or announcement-box...
128 # a list of directories to edit
130 # <name>:<path>:<file filter>:<0|1 (recursion off or on)> [, ....]
132 ServletModule.FileEdit.Configuration= \
133 includes:/var/www/project/site/includes:.*\\.inc:1
135 ################################################
136 ########### B) STATIC SITE CONFIG #############
137 ################################################
139 # the url of the static site
140 # on the machine where mir runs on
142 Producer.ProductionHost=http://mir.someserver.org
144 # the url of the public site
145 # only different from ProductionHost if pages are copied to
146 # one ore more mirror-servers for delivery
148 Producer.PublicationHost=http://mir.someserver.org
150 # Produrce.StorageRoot is the directory, in which
151 # the generated HTML pages will be stored
153 Producer.StorageRoot=/var/www/project/site/
155 # use this property only if the pages are NOT produced under the docRoot
156 # of the webserver. all links in the produced pages are prepended
157 # with Producer.DocRoot
162 #####################
163 # media server URLs #
164 #####################
166 # for better performance or load-sharing
167 # images/media can be copied to (and served from) different servers
168 # only in this case image- and medialinks need different URLs.
170 # the url of the video-server
172 Producer.Video.Host=http://mir.someserver.org/video
174 # the url of the audio-server
176 Producer.Audio.Host=http://mir.someserver.org/audio
178 # the url of the image-server
180 Producer.Image.Host=http://mir.someserver.org/images
182 # the url of the media-server
184 Producer.Media.Host=http://mir.someserver.org/media
186 # the url of the real-media-server
188 Producer.RealMedia.Host=rtsp://some.streamingmedia.server/somedir/
192 ############################################
193 # image/media specific storage directories #
194 ############################################
196 # absolute directory, where the images are saved
198 Producer.Image.Path=/var/www/project/site/images/
201 # absolute directory, where the media files are saved
203 Producer.Media.Path=/var/www/project/site/media
205 # absolute directory, where the realmedia data files(ra and rm) are saved
206 # the ram files which point to the RealMedia.Host get saved in the regular Media dir
207 # this should make rsyncing to a separate streaming server much easier
209 Producer.RealMedia.Path=/var/www/project/site/rtsp
211 # mir creates a small thumbnail-icon for each image posted
212 # relativ directory, where the thumbnails will be saved
214 Producer.Image.IconPath=/icon
221 # by default they are stored in the webservers [docRoot]/img directory
222 # they are distibuted with the mir-source (etc/producer/images)
223 # use the "staticimages.generate" producer once to copy them in place
226 # Tiny Icons for the media types on the newswire summary.
227 # (right hand side of start page)
229 Producer.Icon.TinyImage=photo_small.gif
230 Producer.Icon.TinyAudio=audio_small.gif
231 Producer.Icon.TinyVideo=video_small.gif
232 Producer.Icon.TinyText=text_small.gif
234 #Medium sized icons used at various places
236 Producer.Icon.BigImage=photo_big.gif
237 Producer.Icon.BigAudio=audio_big.gif
238 Producer.Icon.BigVideo=video_big.gif
239 Producer.Icon.BigText=text_big.gif
241 #Icons used for links
243 Producer.ExtLinkName=extlink.gif
244 Producer.IntLinkName=intlink.gif
245 Producer.MailLinkName=maillink.gif
247 # this is the name of the subdirectory where the image-dir
250 Producer.ImageRoot=/img
254 ################################################
255 ########### C) DYNAMIC SITE CONFIG #############
256 ################################################
258 # the main mir-servlet
260 Producer.ActionServlet=/servlet/Mir
262 # the url of the openposting-servlet
264 Producer.OpenAction=http://mir.someserver.org/servlet/OpenMir
266 # the maximum allowed size of an uploaded media file in KB.
268 MaxMediaUploadSize=20000
270 # the maximum number of allowed media items to upload at once.
272 ServletModule.OpenIndy.MaxMediaUploadItems=20
274 # the default number of media items to upload at once
276 ServletModule.OpenIndy.DefaultMediaUploadItems=1
279 ######################
280 # PDF configurations #
281 ######################
283 # the following lines are used to construct PDFs on the fly from one or more articles
284 # for the moment, if you want to change anything else about your pdfs, you
285 # will have to learn some java!
287 # keep in mind that there may not be enough room for all the text you enter as the
288 # value of one these options, if text doesn't appear, the only easy thing to do is
292 # a single line of big text which will appear at the top of the first page of all generated pdfs
294 PDF.Title=SOME MIR-SITE
296 # about two lines of small text which will appear at the bottom of every page
298 PDF.Footer=Mir-CMS PDF-Newsletter. Content is good, and free to use for non-commercial purposes under the Open Content license. If you have questions, email someone.
300 # the size paper your target audience will likely have in their printers.
301 # pick one of A4 or LETTER
305 ################################################
306 ############ D) DATABASE CONFIG ##############
307 ################################################
309 # specify your database
312 Database.Username=postgres
315 Database.Host=localhost
317 Database.Driver=org.postgresql.Driver
320 ############################################
321 # encoding configuration #
322 ############################################
324 # The default encoding charset used in the written html files as well
325 # as the dynamic output html.
326 Mir.DefaultHTMLCharset=UTF-8
328 # The java equivalent of Mir.DefaultHTMLCharset
329 Mir.DefaultEncoding=UTF8