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 Mir.Localizer=NYCLocalizer
74 #################################
75 # admin interface configuration #
76 #################################
78 # Settings for the admin login:
79 # If the default language is left empty, it will set the accept-language of
80 # the client browser as the default.
82 Mir.Login.DefaultLanguage=en
83 Mir.Login.Languages=en;de;fr;nl;es;pt;eu;sv;tr;zh;gz
85 # Show who's logged in?
87 Mir.Admin.ShowLoggedinUsers=1
89 # enable deletion of comments/articles?
91 Mir.Localizer.Admin.AllowDeleteComment=1
92 Mir.Localizer.Admin.AllowDeleteArticle=1
94 #######################
95 # automated producers #
96 #######################
98 # Which producers need to be called after an article is posted
100 Mir.Localizer.OpenPosting.ContentProducers= \
101 media.new;articles.changed;startpage.generate;synchronization.run
103 # Which producers need to be called after a comment is posted
105 Mir.Localizer.OpenPosting.CommentProducers= \
106 articles.changed;synchronization.run
108 # Which producers need to be called after the "produce all new" link is clicked from admin
110 Mir.Localizer.Producer.AllNewProducers= \
111 media.new;articles.changed;startpage.run;synchronization.run
117 #use rsync to mirror the website to a remote-host
120 Rsync.Script.Path=/var/lib/mir/nyc/mir/scripts
127 # for extra flexibility editors can edit text-files from within the admin-interface
128 # these files can then be included in webpages using SSI as footer or announcement-box...
130 # a list of directories to edit
132 # <name>:<path>:<file filter>:<0|1 (recursion off or on)> [, ....]
134 ServletModule.FileEdit.Configuration= \
135 includes:/var/lib/mir/nyc/public_html/includes:.*\\.inc:1, \
136 prodtemp:/var/lib/mir/nyc/mir/etc/producer:.*\\.template:0, \
137 opentemp:/var/lib/mir/nyc/mir/etc/open:.*\\.template:0, \
138 bundles:/var/lib/mir/nyc/mir/etc/bundles:.*\\.properties:0
140 ################################################
141 ########### B) STATIC SITE CONFIG #############
142 ################################################
144 # the url of the static site
145 # on the machine where mir runs on
147 Producer.ProductionHost=http://nyc.indymedia.org
149 # the url of the public site
150 # only different from ProductionHost if pages are copied to
151 # one ore more mirror-servers for delivery
153 Producer.PublicationHost=http://nyc.indymedia.org
155 # Produrce.StorageRoot is the directory, in which
156 # the generated HTML pages will be stored
158 Producer.StorageRoot=/var/lib/mir/nyc/public_html
160 # use this property only if the pages are NOT produced under the docRoot
161 # of the webserver. all links in the produced pages are prepended
162 # with Producer.DocRoot
167 #####################
168 # media server URLs #
169 #####################
171 # for better performance or load-sharing
172 # images/media can be copied to (and served from) different servers
173 # only in this case image- and medialinks need different URLs.
175 # the url of the video-server
177 Producer.Video.Host=http://nyc.indymedia.org/video
179 # the url of the audio-server
181 Producer.Audio.Host=http://nyc.indymedia.org/audio
183 # the url of the image-server
185 Producer.Image.Host=http://nyc.indymedia.org/images
187 # the url of the media-server
189 Producer.Media.Host=http://nyc.indymedia.org/media
191 # the url of the real-media-server
193 Producer.RealMedia.Host=rtsp://some.streamingmedia.server/somedir/
197 ############################################
198 # image/media specific storage directories #
199 ############################################
201 # absolute directory, where the images are saved
203 Producer.Image.Path=/var/lib/mir/nyc/public_html/images
206 # absolute directory, where the media files are saved
208 Producer.Media.Path=/var/lib/mir/nyc/public_html/media
210 # absolute directory, where the realmedia data files(ra and rm) are saved
211 # the ram files which point to the RealMedia.Host get saved in the regular Media dir
212 # this should make rsyncing to a separate streaming server much easier
214 Producer.RealMedia.Path=/var/lib/nyc/public_html/rtsp
216 # mir creates a small thumbnail-icon for each image posted
217 # relativ directory, where the thumbnails will be saved
219 Producer.Image.IconPath=/icon
226 # by default they are stored in the webservers [docRoot]/img directory
227 # they are distibuted with the mir-source (etc/producer/images)
228 # use the "staticimages.generate" producer once to copy them in place
231 # Tiny Icons for the media types on the newswire summary.
232 # (right hand side of start page)
234 Producer.Icon.TinyImage=photo_small.gif
235 Producer.Icon.TinyAudio=audio_small.gif
236 Producer.Icon.TinyVideo=video_small.gif
237 Producer.Icon.TinyText=text_small.gif
239 #Medium sized icons used at various places
241 Producer.Icon.BigImage=photo_big.gif
242 Producer.Icon.BigAudio=audio_big.gif
243 Producer.Icon.BigVideo=video_big.gif
244 Producer.Icon.BigText=text_big.gif
246 #Icons used for links
248 Producer.ExtLinkName=extlink.gif
249 Producer.IntLinkName=intlink.gif
250 Producer.MailLinkName=maillink.gif
252 # this is the name of the subdirectory where the image-dir
255 Producer.ImageRoot=/img
259 ################################################
260 ########### C) DYNAMIC SITE CONFIG #############
261 ################################################
263 # the main mir-servlet
265 Producer.ActionServlet=/servlet/Mir
267 # the url of the openposting-servlet
269 Producer.OpenAction=https://publish.indymedia.org/nyc/servlet/OpenMir
271 # the maximum allowed size of an uploaded media file in KB.
273 MaxMediaUploadSize=20000
275 # the maximum number of allowed media items to upload at once.
277 ServletModule.OpenIndy.MaxMediaUploadItems=20
279 # the default number of media items to upload at once
281 ServletModule.OpenIndy.DefaultMediaUploadItems=1
284 ######################
285 # PDF configurations #
286 ######################
288 # the following lines are used to construct PDFs on the fly from one or more articles
289 # for the moment, if you want to change anything else about your pdfs, you
290 # will have to learn some java!
292 # keep in mind that there may not be enough room for all the text you enter as the
293 # value of one these options, if text doesn't appear, the only easy thing to do is
297 # a single line of big text which will appear at the top of the first page of all generated pdfs
299 PDF.Title=NYC INDYMEDIA
301 # about two lines of small text which will appear at the bottom of every page
303 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.
305 # the size paper your target audience will likely have in their printers.
306 # pick one of A4 or LETTER
310 ################################################
311 ############ D) DATABASE CONFIG ##############
312 ################################################
314 # specify your database
317 Database.Username=nyc
318 Database.Password=nyc
320 Database.Host=localhost
322 Database.Driver=org.postgresql.Driver
325 ############################################
326 # encoding configuration #
327 ############################################
329 # The default encoding charset used in the written html files as well
330 # as the dynamic output html.
331 Mir.DefaultHTMLCharset=UTF-8
333 # The java equivalent of Mir.DefaultHTMLCharset
334 Mir.DefaultEncoding=UTF8