40857b6d300ace591048f67dd7791c22ff72fada
[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=mir.someserver.org
46 Mir.Shortname=mir
47
48 Mir.Contact-email.address=mir-project@somemailserver.org
49 Mir.Contact-email.name=mir-project mailinglist
50
51 Mir.Tech-email.address=mir-admins@somemailserver.org
52 Mir.Tech-email.name=mir-admins mailinglist
53
54 Mir.Public-email.address=project@somemailserver.org
55 Mir.Public-email.name=project mailinglist
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= UTC
62
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
67
68 # For missing values, the FallbackLanguage is used as default
69 #
70 Mir.Admin.FallbackLanguage=en
71
72 Mir.Localizer=NYCLocalizer
73
74 #################################
75 # admin interface configuration #
76 #################################
77
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.
81 #
82 Mir.Login.DefaultLanguage=en
83 Mir.Login.Languages=en;de;fr;nl;es;pt;eu;sv;tr;zh;gz
84
85 # Show who's logged in?
86 #
87 Mir.Admin.ShowLoggedinUsers=1
88
89 # enable deletion of comments/articles?
90 #
91 Mir.Localizer.Admin.AllowDeleteComment=1
92 Mir.Localizer.Admin.AllowDeleteArticle=1
93
94 #######################
95 # automated producers #
96 #######################
97
98 # Which producers need to be called after an article is posted
99 #
100 Mir.Localizer.OpenPosting.ContentProducers= \
101 media.new;articles.changed;startpage.generate;synchronization.run
102
103 # Which producers need to be called after a comment is posted
104 #
105 Mir.Localizer.OpenPosting.CommentProducers= \
106 articles.changed;synchronization.run
107
108 # Which producers need to be called after the "produce all new" link is clicked from admin
109 #
110 Mir.Localizer.Producer.AllNewProducers= \
111 media.new;articles.changed;startpage.run;synchronization.run
112
113 #########
114 # rsync #
115 #########
116
117 #use rsync to mirror the website to a remote-host
118 #
119 Rsync=no
120 Rsync.Script.Path=/var/lib/mir/nyc/mir/scripts
121
122
123 ###################
124 # FileEdit module #
125 ###################
126
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...
129 #
130 # a list of directories to edit
131 # format:
132 #      <name>:<path>:<file filter>:<0|1 (recursion off or on)> [, ....]
133 #
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
139         
140 ################################################
141 ###########  B) STATIC SITE CONFIG #############
142 ################################################
143
144 # the url of the static site
145 # on the machine where mir runs on
146 #
147 Producer.ProductionHost=http://nyc.indymedia.org
148
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
152 #
153 Producer.PublicationHost=http://nyc.indymedia.org
154
155 # Produrce.StorageRoot is the directory, in which
156 # the generated HTML pages will be stored
157 #
158 Producer.StorageRoot=/var/lib/mir/nyc/public_html
159
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
163 #
164 Producer.DocRoot=
165
166
167 #####################
168 # media server URLs #
169 #####################
170
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.
174
175 # the url of the video-server
176 #
177 Producer.Video.Host=http://nyc.indymedia.org/video
178
179 # the url of the audio-server
180 #
181 Producer.Audio.Host=http://nyc.indymedia.org/audio
182
183 # the url of the image-server
184 #
185 Producer.Image.Host=http://nyc.indymedia.org/images
186
187 # the url of the media-server
188 #
189 Producer.Media.Host=http://nyc.indymedia.org/media
190
191 # the url of the real-media-server
192 #
193 Producer.RealMedia.Host=rtsp://some.streamingmedia.server/somedir/
194
195
196
197 ############################################
198 # image/media specific storage directories #
199 ############################################
200
201 # absolute directory, where the images are saved
202 #
203 Producer.Image.Path=/var/lib/mir/nyc/public_html/images
204
205
206 # absolute directory, where the media files are saved
207 #
208 Producer.Media.Path=/var/lib/mir/nyc/public_html/media
209
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
213 #
214 Producer.RealMedia.Path=/var/lib/nyc/public_html/rtsp
215
216 # mir creates a small thumbnail-icon for each image posted
217 # relativ directory, where the thumbnails will be saved
218 #
219 Producer.Image.IconPath=/icon
220
221
222 ####################
223 # media-type-icons #
224 ####################
225
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
229 #
230
231 # Tiny Icons for the media types on the newswire summary.
232 # (right hand side of start page)
233 #
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
238
239 #Medium sized icons used at various places
240 #
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
245
246 #Icons used for links
247 #
248 Producer.ExtLinkName=extlink.gif
249 Producer.IntLinkName=intlink.gif
250 Producer.MailLinkName=maillink.gif
251
252 # this is the name of the subdirectory where the image-dir
253 # will be linked to.
254 #
255 Producer.ImageRoot=/img
256
257
258
259 ################################################
260 ########### C) DYNAMIC SITE CONFIG #############
261 ################################################
262
263 # the main mir-servlet
264 #
265 Producer.ActionServlet=/servlet/Mir
266
267 # the url of the openposting-servlet
268 #
269 Producer.OpenAction=https://publish.indymedia.org/nyc/servlet/OpenMir
270
271 # the maximum allowed size of an uploaded media file in KB.
272 #
273 MaxMediaUploadSize=20000
274
275 # the maximum number of allowed media items to upload at once.
276 #
277 ServletModule.OpenIndy.MaxMediaUploadItems=20
278
279 # the default number of media items to upload at once
280 #
281 ServletModule.OpenIndy.DefaultMediaUploadItems=1
282
283
284 ######################
285 # PDF configurations #
286 ######################
287
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!
291 #
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
294 # use less text!
295 #
296
297 # a single line of big text which will appear at the top of the first page of all generated pdfs
298 #
299 PDF.Title=NYC INDYMEDIA
300
301 # about two lines of small text which will appear at the bottom of every page
302 #
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.
304
305 # the size paper your target audience will likely have in their printers.
306 # pick one of A4 or LETTER
307 #
308 PDF.PageSize=A4
309
310 ################################################
311 ############ D) DATABASE CONFIG   ##############
312 ################################################
313
314 # specify your database
315 #
316 Database.Name=nyc
317 Database.Username=nyc
318 Database.Password=nyc
319
320 Database.Host=localhost
321 Database.Port=5432
322 Database.Driver=org.postgresql.Driver
323
324
325 ############################################
326 # encoding configuration                   #
327 ############################################
328
329 # The default encoding charset used in the written html files as well
330 # as the dynamic output html.
331 Mir.DefaultHTMLCharset=UTF-8
332
333 # The java equivalent of Mir.DefaultHTMLCharset
334 Mir.DefaultEncoding=UTF8