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 options shown here are the more frequently used options. A full
7 # list of all default options is available in the
8 # source/default.properties file. If you need to change any of those,
9 # just override the values in *this* file (don't change the
10 # source/default.properties file
12 # The Mir software realizes a semi-dynamic web service:
13 # The web server that is accessed by readers has pure static
14 # pages. These pages are generated by the Mir software that
15 # consists of a collection of Java servlets and HTML templates.
17 # Mir uses a database server to store the data that is needed to
18 # build the static site.
19 # So there are basically three parts in this config file:
21 # a) general & admin setup
22 # b) static site config
26 # edit this to suit your needs
27 # After editing this file, two steps need to be taken to make the changes effective:
28 # 1. ant has to be invoked.
29 # 2. tomcat needs to be restarted.
31 # This file only contains the properties that are most often changed. To view all
32 # possible config values, refer to the file default.properties, located in the
33 # source directory. Don't change settings in default.properties however, instead
36 # Note: for filename values, by default, files are used relative to the servlet's
39 # The setup uses the following assumptions:
40 # The URL to reach the site is http://mir.someserver.org
41 # The StorageRoot of this URL is /var/www/project/site/
42 # All produced pages and media are located below this directory.
44 ################################################
45 ############ A) GENERAL SETUP ##############
46 ################################################
48 # mir/project an contact information
49 # for display on the site
51 Mir.Name=mir.someserver.org
54 Mir.Contact-email.address=mir-project@somemailserver.org
55 Mir.Contact-email.name=mir-project mailinglist
57 Mir.Tech-email.address=mir-admins@somemailserver.org
58 Mir.Tech-email.name=mir-admins mailinglist
60 Mir.Public-email.address=project@somemailserver.org
61 Mir.Public-email.name=project mailinglist
63 # Default timezone to display times in in admin, producers
64 # use CET for Central European Time (Paris, Amsterdam)
65 # more timezones here: http://www.postgresql.org/docs/7.2/static/timezones.html
67 Mir.DefaultTimezone= UTC
69 # Default date/time format
70 # For the syntax of the format, refer to
71 # http://java.sun.com/j2se/1.3/docs/api/java/text/SimpleDateFormat.html
72 Mir.DefaultDateTimeFormat = yyyy-MM-dd HH:mm
74 # For missing values, the FallbackLanguage is used as default
76 Mir.Admin.FallbackLanguage=en
78 # warning: advanced feature. Don't change unless you know
79 # Localizers provide a customization framework that allows different
80 # mir sites to behave differently. Each site can write it's own bits
81 # of java code that override default behavior. The localizer
82 # framework provides "hooks" where admins can plug in their custom
86 # Mir.Localizer=org.indymedia.de.DeLocalizer
89 #################################
90 # admin interface configuration #
91 #################################
93 # Settings for the admin login:
94 # If the default language is left empty, it will set the accept-language of
95 # the client browser as the default.
97 Mir.Login.DefaultLanguage=en
98 Mir.Login.Languages=en;de;fr;nl;es;pt;eu;sv;tr;zh;gz
100 # Show who's logged in?
102 Mir.Admin.ShowLoggedinUsers=1
104 # enable deletion of comments/articles?
106 Mir.Localizer.Admin.AllowDeleteComment=1
107 Mir.Localizer.Admin.AllowDeleteArticle=1
109 #######################
110 # automated producers #
111 #######################
113 # Which producers need to be called after an article is posted
115 Mir.Localizer.OpenPosting.ContentProducers= \
116 media.new;articles.changed;startpage.generate;synchronization.run
118 # Which producers need to be called after a comment is posted
120 Mir.Localizer.OpenPosting.CommentProducers= \
121 articles.changed;synchronization.run
123 # Which producers need to be called after the "produce all new" link is clicked from admin
125 Mir.Localizer.Producer.AllNewProducers= \
126 media.new;articles.changed;startpage.run;synchronization.run
132 #use rsync to mirror the website to a remote-host
135 Rsync.Script.Path=/var/www/bin/rsync-copy.sh
142 # for extra flexibility editors can edit text-files from within the admin-interface
143 # these files can then be included in webpages using SSI as footer or announcement-box...
145 # a list of directories to edit
147 # <name>:<path>:<file filter>:<0|1 (recursion off or on)> [, ....]
149 ServletModule.FileEdit.Configuration= \
150 includes:/var/www/project/site/includes:.*\\.inc:1
152 ################################################
153 ########### B) STATIC SITE CONFIG #############
154 ################################################
156 # the url of the static site
157 # on the machine where mir runs on
159 Producer.ProductionHost=http://mir.someserver.org
161 # the url of the public site
162 # only different from ProductionHost if pages are copied to
163 # one ore more mirror-servers for delivery
165 Producer.PublicationHost=http://mir.someserver.org
167 # Produrce.StorageRoot is the directory, in which
168 # the generated HTML pages will be stored
170 Producer.StorageRoot=/var/www/project/site/
172 # use this property only if the pages are NOT produced under the docRoot
173 # of the webserver. all links in the produced pages are prepended
174 # with Producer.DocRoot
179 #####################
180 # media server URLs #
181 #####################
183 # for better performance or load-sharing
184 # images/media can be copied to (and served from) different servers
185 # only in this case image- and medialinks need different URLs.
187 # the url of the video-server
189 Producer.Video.Host=http://mir.someserver.org/video
191 # the url of the audio-server
193 Producer.Audio.Host=http://mir.someserver.org/audio
195 # the url of the image-server
197 Producer.Image.Host=http://mir.someserver.org/images
199 # the url of the media-server
201 Producer.Media.Host=http://mir.someserver.org/media
203 # the url of the real-media-server
205 Producer.RealMedia.Host=rtsp://some.streamingmedia.server/somedir/
209 ############################################
210 # image/media specific storage directories #
211 ############################################
213 # absolute directory, where the images are saved
215 Producer.Image.Path=/var/www/project/site/images/
218 # absolute directory, where the media files are saved
220 Producer.Media.Path=/var/www/project/site/media
222 # absolute directory, where the realmedia data files(ra and rm) are saved
223 # the ram files which point to the RealMedia.Host get saved in the regular Media dir
224 # this should make rsyncing to a separate streaming server much easier
226 Producer.RealMedia.Path=/var/www/project/site/rtsp
228 # mir creates a small thumbnail-icon for each image posted
229 # relativ directory, where the thumbnails will be saved
231 Producer.Image.IconPath=/icon
238 # by default they are stored in the webservers [docRoot]/img directory
239 # they are distibuted with the mir-source (etc/producer/images)
240 # use the "staticimages.generate" producer once to copy them in place
243 # Tiny Icons for the media types on the newswire summary.
244 # (right hand side of start page)
246 Producer.Icon.TinyImage=photo_small.gif
247 Producer.Icon.TinyAudio=audio_small.gif
248 Producer.Icon.TinyVideo=video_small.gif
249 Producer.Icon.TinyText=text_small.gif
251 #Medium sized icons used at various places
253 Producer.Icon.BigImage=photo_big.gif
254 Producer.Icon.BigAudio=audio_big.gif
255 Producer.Icon.BigVideo=video_big.gif
256 Producer.Icon.BigText=text_big.gif
258 #Icons used for links
260 Producer.ExtLinkName=extlink.gif
261 Producer.IntLinkName=intlink.gif
262 Producer.MailLinkName=maillink.gif
264 # this is the name of the subdirectory where the image-dir
267 Producer.ImageRoot=/img
271 ################################################
272 ########### C) DYNAMIC SITE CONFIG #############
273 ################################################
275 # the main mir-servlet
277 Producer.ActionServlet=/servlet/Mir
279 # the url of the openposting-servlet
281 Producer.OpenAction=http://mir.someserver.org/servlet/OpenMir
283 # the maximum allowed size of an uploaded media file in KB.
285 MaxMediaUploadSize=20000
287 # the maximum number of allowed media items to upload at once.
289 ServletModule.OpenIndy.MaxMediaUploadItems=20
291 # the default number of media items to upload at once
293 ServletModule.OpenIndy.DefaultMediaUploadItems=1
295 # path to ImageMagick executables. Default is "" (nothing), which
296 # means executables will be searched using the default system PATH
297 # example:Producer.Image.ImageMagickPath=/usr/local/ImageMagick/bin
299 Producer.Image.ImageMagickPath=
302 ######################
303 # PDF configurations #
304 ######################
306 # the following lines are used to construct PDFs on the fly from one or more articles
307 # for the moment, if you want to change anything else about your pdfs, you
308 # will have to learn some java!
310 # keep in mind that there may not be enough room for all the text you enter as the
311 # value of one these options, if text doesn't appear, the only easy thing to do is
315 # a single line of big text which will appear at the top of the first page of all generated pdfs
317 PDF.Title=SOME MIR-SITE
319 # about two lines of small text which will appear at the bottom of every page
321 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.
323 # the size paper your target audience will likely have in their printers.
324 # pick one of A4 or LETTER
328 ################################################
329 ############ D) DATABASE CONFIG ##############
330 ################################################
332 # specify your database
335 Database.Username=mir
336 Database.Password=indymedia
338 Database.Host=localhost
340 Database.Driver=org.postgresql.Driver
343 ############################################
344 # encoding configuration #
345 ############################################
347 # The default encoding charset used in the written html files as well
348 # as the dynamic output html.
349 Mir.DefaultHTMLCharset=UTF-8
351 # The java equivalent of Mir.DefaultHTMLCharset
352 Mir.DefaultEncoding=UTF8