d6bec8a9469ec636da5e6963e9255133be1fc9a9
[nyc.indymedia.org.git] / etc / config.properties
1 #
2 # Sample config for Mir
3 # by Matthias <mjordan@code-fu.de> 2001-09-12
4 # reorganized by <init@nadir.org>  2003-02-12
5 #
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.
10 #
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:
14 #
15 # a) general & admin setup
16 # b) static site config
17 # c) dynamic site
18 # d) database config
19 #
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.
24 #
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
28 # use this file.
29 #
30 # Note: for filename values, by default, files are used relative to the servlet's
31 # WEB-INF directory.
32 #
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.
37
38 ################################################
39 ############    A) GENERAL SETUP  ##############
40 ################################################
41
42 # mir/project an contact information
43 # for display on the site
44 #
45 Mir.Name=publish.nyc.indymedia.org
46 Mir.Shortname=$NAME
47
48 Mir.Contact-email.address=imc-nyc-web@lists.indymedia.org
49 Mir.Contact-email.name=NYC IMC Web Collective
50
51 Mir.Tech-email.address=imc-nyc-web@lists.indymedia.org
52 Mir.Tech-email.name=NYC IMC Web Collective
53
54 Mir.Public-email.address=imc-nyc-web@lists.indymedia.org
55 Mir.Public-email.name=NYC IMC Web Collective
56
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
60 #
61 Mir.DefaultTimezone= America/New_York
62
63 #superuser
64 AccessControl.SuperUsers = mike, chris, patrick, ana, gdm
65
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
70
71 # For missing values, the FallbackLanguage is used as default
72 #
73 Mir.Admin.FallbackLanguage=en
74
75 Mir.Localizer=NYCLocalizer
76
77 #################################
78 # admin interface configuration #
79 #################################
80
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.
84 #
85 Mir.Login.DefaultLanguage=en
86 Mir.Login.Languages=en;de;fr;nl;es;pt;eu;sv;tr;zh;gz
87
88 # Show who's logged in?
89 #
90 Mir.Admin.ShowLoggedinUsers=1
91
92 # enable deletion of comments/articles?
93 #
94 Mir.Localizer.Admin.AllowDeleteComment=1
95 Mir.Localizer.Admin.AllowDeleteArticle=1
96
97 #######################
98 # automated producers #
99 #######################
100
101 # Which producers need to be called after an article is posted
102 #
103 Mir.Localizer.OpenPosting.ContentProducers= \
104 media.new;articles.changed;startpage.generate;opnewswireinclude.generate;synchronization.run
105
106 # Which producers need to be called after a comment is posted
107 #
108 Mir.Localizer.OpenPosting.CommentProducers= \
109 articles.changed;synchronization.run
110
111 # Which producers need to be called after the "produce all new" link is clicked from admin
112 #
113 Mir.Localizer.Producer.AllNewProducers= \
114 media.new;articles.changed;startpage.run;synchronization.run
115
116
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
121                                  
122                                  
123
124 #########
125 # rsync #
126 #########
127
128 #use rsync to mirror the website to a remote-host
129 #
130 Rsync=no
131 Rsync.Script.Path=/var/www/bin/rsync-copy.sh
132
133
134 ###################
135 # FileEdit module #
136 ###################
137
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...
140 #
141 # a list of directories to edit
142 # format:
143 #      <name>:<path>:<file filter>:<0|1 (recursion off or on)> [, ....]
144 #
145 ServletModule.FileEdit.Configuration= \
146   includes:/imc/mir/nyc/css/:.*:1
147
148 ################################################
149 ###########  B) STATIC SITE CONFIG #############
150 ################################################
151
152 # the url of the static site
153 # on the machine where mir runs on
154 #
155 Producer.ProductionHost=https://publish.nyc.indymedia.org
156
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
160 #
161 Producer.PublicationHost=http://nyc.indymedia.org
162
163 # Produrce.StorageRoot is the directory, in which
164 # the generated HTML pages will be stored
165 #
166 Producer.StorageRoot=/imc/mir/nyc
167
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
171 #
172 Producer.DocRoot=
173
174
175 #####################
176 # media server URLs #
177 #####################
178
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.
182
183 # the url of the video-server
184 #
185 Producer.Video.Host=/video
186
187 # the url of the audio-server
188 #
189 Producer.Audio.Host=/audio
190
191 # the url of the image-server
192 #
193 Producer.Image.Host=/images
194
195 # the url of the media-server
196 #
197 Producer.Media.Host=/media
198
199 # the url of the real-media-server
200 #
201 Producer.RealMedia.Host=rtsp://nyc.indymedia.org/real/
202
203
204
205 ############################################
206 # image/media specific storage directories #
207 ############################################
208
209 # absolute directory, where the images are saved
210 #
211 Producer.Image.Path=/imc/mir/nyc/images/
212
213
214 # absolute directory, where the media files are saved
215 #
216 Producer.Media.Path=/imc/mir/nyc/media
217
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
221 #
222 Producer.RealMedia.Path=/imc/mir/nyc/rtsp
223
224 # mir creates a small thumbnail-icon for each image posted
225 # relativ directory, where the thumbnails will be saved
226 #
227 Producer.Image.IconPath=/icon
228
229
230 ####################
231 # media-type-icons #
232 ####################
233
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
237 #
238
239 # Tiny Icons for the media types on the newswire summary.
240 # (right hand side of start page)
241 #
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
246
247 #Medium sized icons used at various places
248 #
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
253
254 #Icons used for links
255 #
256 Producer.ExtLinkName=extlink.gif
257 Producer.IntLinkName=intlink.gif
258 Producer.MailLinkName=maillink.gif
259
260 # this is the name of the subdirectory where the image-dir
261 # will be linked to.
262 #
263 Producer.ImageRoot=/img
264
265
266
267 ################################################
268 ########### C) DYNAMIC SITE CONFIG #############
269 ################################################
270
271 # the main mir-servlet
272 #
273 Producer.ActionServlet=/servlet/Mir
274
275 # the url of the openposting-servlet
276 #
277 Producer.OpenAction=https://publish.nyc.indymedia.org/nyc/servlet/OpenMir
278
279 # the maximum allowed size of an uploaded media file in KB.
280 #
281 MaxMediaUploadSize=20000
282
283 # the maximum number of allowed media items to upload at once.
284 #
285 ServletModule.OpenIndy.MaxMediaUploadItems=20
286
287 # the default number of media items to upload at once
288 #
289 ServletModule.OpenIndy.DefaultMediaUploadItems=1
290
291
292 ######################
293 # PDF configurations #
294 ######################
295
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!
299 #
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
302 # use less text!
303 #
304
305 # a single line of big text which will appear at the top of the first page of all generated pdfs
306 #
307 PDF.Title=publish.nyc.indymedia.org
308
309 # about two lines of small text which will appear at the bottom of every page
310 #
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.
312
313 # the size paper your target audience will likely have in their printers.
314 # pick one of A4 or LETTER
315 #
316 PDF.PageSize=A4
317
318 ################################################
319 ############ D) DATABASE CONFIG   ##############
320 ################################################
321
322 # specify your database
323 #
324 Database.Name=nyc2
325 Database.Username=nyc
326 Database.Password=1TDH9QDC
327
328 Database.Host=localhost
329 Database.Port=5432
330 Database.Driver=org.postgresql.Driver
331
332
333 ############################################
334 # encoding configuration                   #
335 ############################################
336
337 # The default encoding charset used in the written html files as well
338 # as the dynamic output html.
339 Mir.DefaultHTMLCharset=UTF-8
340
341 # The java equivalent of Mir.DefaultHTMLCharset
342 Mir.DefaultEncoding=UTF8