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=publish.nyc.indymedia.org
48 Mir.Contact-email.address=imc-nyc-web@lists.indymedia.org
49 Mir.Contact-email.name=NYC IMC Web Collective
51 Mir.Tech-email.address=imc-nyc-web@lists.indymedia.org
52 Mir.Tech-email.name=NYC IMC Web Collective
54 Mir.Public-email.address=imc-nyc-web@lists.indymedia.org
55 Mir.Public-email.name=NYC IMC Web Collective
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= America/New_York
64 AccessControl.SuperUsers = mike, chris, patrick, ana, gdm
66 # Default date/time format
67 # For the syntax of the format, refer to
68 # http://java.sun.com/j2se/1.3/docs/api/java/text/SimpleDateFormat.html
69 Mir.DefaultDateTimeFormat = yyyy-MM-dd HH:mm
71 # For missing values, the FallbackLanguage is used as default
73 Mir.Admin.FallbackLanguage=en
75 Mir.Localizer=NYCLocalizer
77 #################################
78 # admin interface configuration #
79 #################################
81 # Settings for the admin login:
82 # If the default language is left empty, it will set the accept-language of
83 # the client browser as the default.
85 Mir.Login.DefaultLanguage=en
86 Mir.Login.Languages=en;de;fr;nl;es;pt;eu;sv;tr;zh;gz
88 # Show who's logged in?
90 Mir.Admin.ShowLoggedinUsers=1
92 # enable deletion of comments/articles?
94 Mir.Localizer.Admin.AllowDeleteComment=1
95 Mir.Localizer.Admin.AllowDeleteArticle=1
97 #######################
98 # automated producers #
99 #######################
101 # Which producers need to be called after an article is posted
103 Mir.Localizer.OpenPosting.ContentProducers= \
104 media.new;articles.changed;startpage.generate;opnewswireinclude.generate;synchronization.run
106 # Which producers need to be called after a comment is posted
108 Mir.Localizer.OpenPosting.CommentProducers= \
109 articles.changed;synchronization.run
111 # Which producers need to be called after the "produce all new" link is clicked from admin
113 Mir.Localizer.Producer.AllNewProducers= \
114 media.new;articles.changed;startpage.run;synchronization.run
117 Mir.Localizer.Admin.TopicLists = content.topic.content:2:0:archiv_url='Content':title, \
118 content.topic.location:2:0:archiv_url='Location':title, \
119 content.topic.category:1:3:archiv_url='Category':title, \
120 content.topic.subcategory:0:10:archiv_url='Subcategory':title
128 #use rsync to mirror the website to a remote-host
131 Rsync.Script.Path=/var/www/bin/rsync-copy.sh
138 # for extra flexibility editors can edit text-files from within the admin-interface
139 # these files can then be included in webpages using SSI as footer or announcement-box...
141 # a list of directories to edit
143 # <name>:<path>:<file filter>:<0|1 (recursion off or on)> [, ....]
145 ServletModule.FileEdit.Configuration= \
146 includes:/imc/mir/nyc/css/:.*:1
148 ################################################
149 ########### B) STATIC SITE CONFIG #############
150 ################################################
152 # the url of the static site
153 # on the machine where mir runs on
155 Producer.ProductionHost=https://publish.nyc.indymedia.org
157 # the url of the public site
158 # only different from ProductionHost if pages are copied to
159 # one ore more mirror-servers for delivery
161 Producer.PublicationHost=http://nyc.indymedia.org
163 # Produrce.StorageRoot is the directory, in which
164 # the generated HTML pages will be stored
166 Producer.StorageRoot=/imc/mir/nyc
168 # use this property only if the pages are NOT produced under the docRoot
169 # of the webserver. all links in the produced pages are prepended
170 # with Producer.DocRoot
175 #####################
176 # media server URLs #
177 #####################
179 # for better performance or load-sharing
180 # images/media can be copied to (and served from) different servers
181 # only in this case image- and medialinks need different URLs.
183 # the url of the video-server
185 Producer.Video.Host=/video
187 # the url of the audio-server
189 Producer.Audio.Host=/audio
191 # the url of the image-server
193 Producer.Image.Host=/images
195 # the url of the media-server
197 Producer.Media.Host=/media
199 # the url of the real-media-server
201 Producer.RealMedia.Host=rtsp://nyc.indymedia.org/real/
205 ############################################
206 # image/media specific storage directories #
207 ############################################
209 # absolute directory, where the images are saved
211 Producer.Image.Path=/imc/mir/nyc/images/
214 # absolute directory, where the media files are saved
216 Producer.Media.Path=/imc/mir/nyc/media
218 # absolute directory, where the realmedia data files(ra and rm) are saved
219 # the ram files which point to the RealMedia.Host get saved in the regular Media dir
220 # this should make rsyncing to a separate streaming server much easier
222 Producer.RealMedia.Path=/imc/mir/nyc/rtsp
224 # mir creates a small thumbnail-icon for each image posted
225 # relativ directory, where the thumbnails will be saved
227 Producer.Image.IconPath=/icon
234 # by default they are stored in the webservers [docRoot]/img directory
235 # they are distibuted with the mir-source (etc/producer/images)
236 # use the "staticimages.generate" producer once to copy them in place
239 # Tiny Icons for the media types on the newswire summary.
240 # (right hand side of start page)
242 Producer.Icon.TinyImage=photo_small.gif
243 Producer.Icon.TinyAudio=audio_small.gif
244 Producer.Icon.TinyVideo=video_small.gif
245 Producer.Icon.TinyText=text_small.gif
247 #Medium sized icons used at various places
249 Producer.Icon.BigImage=photo_big.gif
250 Producer.Icon.BigAudio=audio_big.gif
251 Producer.Icon.BigVideo=video_big.gif
252 Producer.Icon.BigText=text_big.gif
254 #Icons used for links
256 Producer.ExtLinkName=extlink.gif
257 Producer.IntLinkName=intlink.gif
258 Producer.MailLinkName=maillink.gif
260 # this is the name of the subdirectory where the image-dir
263 Producer.ImageRoot=/img
267 ################################################
268 ########### C) DYNAMIC SITE CONFIG #############
269 ################################################
271 # the main mir-servlet
273 Producer.ActionServlet=/servlet/Mir
275 # the url of the openposting-servlet
277 Producer.OpenAction=https://publish.nyc.indymedia.org/nyc/servlet/OpenMir
279 # the maximum allowed size of an uploaded media file in KB.
281 MaxMediaUploadSize=20000
283 # the maximum number of allowed media items to upload at once.
285 ServletModule.OpenIndy.MaxMediaUploadItems=20
287 # the default number of media items to upload at once
289 ServletModule.OpenIndy.DefaultMediaUploadItems=1
292 ######################
293 # PDF configurations #
294 ######################
296 # the following lines are used to construct PDFs on the fly from one or more articles
297 # for the moment, if you want to change anything else about your pdfs, you
298 # will have to learn some java!
300 # keep in mind that there may not be enough room for all the text you enter as the
301 # value of one these options, if text doesn't appear, the only easy thing to do is
305 # a single line of big text which will appear at the top of the first page of all generated pdfs
307 PDF.Title=publish.nyc.indymedia.org
309 # about two lines of small text which will appear at the bottom of every page
311 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.
313 # the size paper your target audience will likely have in their printers.
314 # pick one of A4 or LETTER
318 ################################################
319 ############ D) DATABASE CONFIG ##############
320 ################################################
322 # specify your database
325 Database.Username=nyc
326 Database.Password=XXXXXXX
328 Database.Host=localhost
330 Database.Driver=org.postgresql.Driver
333 ############################################
334 # encoding configuration #
335 ############################################
337 # The default encoding charset used in the written html files as well
338 # as the dynamic output html.
339 Mir.DefaultHTMLCharset=UTF-8
341 # The java equivalent of Mir.DefaultHTMLCharset
342 Mir.DefaultEncoding=UTF8