"external" image handler a bit more configurable now
[mir.git] / source / default.properties
1 #
2 # Sample config for Mir
3 # by Matthias <mjordan@code-fu.de> 2001-09-12
4 #
5 # The Mir software realizes a semi-dynamic web service:
6 # The web server that is accessed by users has pure static
7 # pages. These pages are generated by the Mir software that
8 # consists of a collection of Java servlets and HTML templates.
9 # Mir uses a database server to store the data that is needed to
10 # build the static site.
11 # So there are basically three parts in this config file:
12 #
13 # a) general setup
14 # b) static site config
15 # c) dynamic admin site
16 # d) database config
17 #
18 # edit this to suit your needs (here with sampleuser idfx)
19 # After you edited this file, build.sh has to be invoked.
20 # To be sure, also restart Tomcat.
21 #
22 # Note that for Mir to work, Tomcat has to be set up to handle all
23 # URLs that begin with /servlet. All other URLs are handled by Apache.
24 #
25 # The setup uses the following assumptions:
26 # The URL to reach the site is http://indy.code-fu.de
27 # The StorageRoot of this URL is /pub/Dokumente/Indymedia/de-tech/Mir
28 # All data is located below this directory, including the servlets.
29
30
31 #
32 #
33 # GENERAL SETUP
34 #
35
36 ### mir/imc information
37 Mir.Name=mir.indymedia.org
38 Mir.Shortname=mir
39 Mir.Contact-email.address=mir-coders@lists.indymedia.org
40 Mir.Contact-email.name=mir-coders mailinglist
41 Mir.Tech-email.address=mir-coders@lists.indymedia.org
42 Mir.Tech-email.name=mir-coders mailinglist
43 Mir.Public-email.address=mir-coders@lists.indymedia.org
44 Mir.Public-email.name=mir-coders mailinglist
45
46 Mir.Version=1.1beta
47 DirectOpenposting=yes
48
49 # The name of the abuse config file (relative to the WEB-INF dir)
50 Abuse.Config=abuse.properties
51 # The name of the cookie that can be used to thwart trolls
52 #    (The name is deliberately misleading)
53 Abuse.CookieName=SessionIdentifier
54
55 # The time the cookie will remain active in hours
56 #   168 = 1 week
57 Abuse.CookieMaxAge=168
58
59
60 #where to put the lucene index
61 IndexPath=/tmp/index
62
63 TempDir=/tmp
64
65 Log.LogClass = mir.log.log4j.LoggerImpl
66 Log.log4j.ConfigurationFile = etc/log4j.properties
67 Log.Home = log
68
69 Mir.Localizer=mircoders.localizer.basic.MirBasicLocalizer
70
71 # The location of the producer specifiations
72 Mir.Localizer.ProducerConfigFile=etc/producer/producers.xml
73
74 # Settings for the admin login:
75 # If the default language is left empty, it will set the accept-language of
76 # the client browser as the default.
77 Mir.Login.DefaultLanguage=en
78
79 # The available languages in the login form:
80 Mir.Login.Languages=en;de;fr;nl;es;pt;eu;sv;tr;zh
81
82 # For missing values, the FallbackLanguage is used as default
83 Mir.Admin.FallbackLanguage=en
84
85
86 # the templates
87 Mir.Localizer.Producer.GeneratorLibrary= default=freemarker(etc/producer/)
88 Mir.Localizer.Admin.GeneratorLibrary= default=freemarker(templates/admin/)
89 Mir.Localizer.OpenPosting.GeneratorLibrary= default=freemarker(etc/open/)
90
91 # How should the custom operations (hide etc) in article and comment lists
92 # be presented?
93 # 0 = links, 1 = checkboxes, 2 = a listbox
94 Mir.Localizer.Admin.ListOperationsFlavor=1
95
96 # How should the topics be presented on the article edit page?
97 # 0 = in a multiselect list box, 1 = checkboxes
98 Mir.Localizer.Admin.TopicListFlavor=1
99
100 # For the checkboxes flavour, how many columns should there be?
101 Mir.Localizer.Admin.TopicListColumns=3
102
103 # In which order should the topic appear?
104 Mir.Localizer.Admin.TopicListOrder=title
105
106 # Which producers need to be called after an article (resp. a comment) is posted
107 Mir.Localizer.OpenPosting.ContentProducers= media.new;articles.changed;startpage.generate;synchronization.run
108 Mir.Localizer.OpenPosting.CommentProducers= articles.changed;synchronization.run
109
110 # Which producers need to be called after the "produce all new" link is clicked from admin
111 Mir.Localizer.Producer.AllNewProducers= media.new;articles.changed;startpage.run;synchronization.run
112
113
114 #note that you can't make pdf's without making fo's
115 #this is actually now set in producers.xml
116 #but these summarize what is said in there for the benefit of OpenMir 
117 GenerateFO=yes
118 GeneratePDF=yes
119
120 #use rsync to mirror the website to a remote-host
121 Rsync=no
122 Rsync.Script.Path=/var/www/bin/rsync-copy
123
124 # the maximum allowed size of an uploaded media file in KB.
125 MaxMediaUploadSize=20000
126
127 # the maximum number of allowed media items to upload at once.
128 ServletModule.OpenIndy.MaxMediaUploadItems=20
129
130 # the default number of media items to upload at once
131 ServletModule.OpenIndy.DefaultMediaUploadItems=1
132
133
134 #
135 #
136 # STATIC SITE CONFIG
137 #
138
139 # the url of the static site
140 Producer.ProductionHost=http://indy.code-fu.de
141
142 # Produrce.StorageRoot is the directory, in which
143 # the generated HTML pages will be stored
144 Producer.StorageRoot=/pub/Dokumente/Indymedia/de-tech/Mir/produced
145
146 # for FileEdit module
147 #
148 # where do we find the files? absolute path
149 ServletModule.FileEdit.FileDirectory=/pub/Dokumente/Indymedia/de-tech/Mir/produced
150 ServletModule.FileEdit.ExtFilter=.*\.inc$
151 ServletModule.FileEdit.Recursive=0
152
153 #
154 #
155 # DYNAMIC SITE CONFIG
156 #
157
158 # the url of the openposting-servlet
159 Producer.OpenAction=http://indy.code-fu.de/Mir/servlet/OpenMir
160
161 # use this property if the pages are not produced under the docRoot
162 # of the webserver. all links in the produced pages are prepended
163 # with Producer.DocRoot
164 Producer.DocRoot=
165
166 Producer.ActionServlet=/servlet/Mir
167
168 # this is the name of the subdirectory where the image-dir
169 # will be linked to.
170 Producer.ImageRoot=/img
171
172
173 # the url of the video-server
174 Producer.Video.Host=http://indy.code-fu.de/video
175
176 # the url of the audio-server
177 Producer.Audio.Host=http://indy.code-fu.de/audio
178
179 # the url of the image-server
180 Producer.Image.Host=http://indy.code-fu.de/images
181
182 # the url of the media-server
183 Producer.Media.Host=http://indy.code-fu.de/media
184
185 # the url of the real-media-server
186 Producer.RealMedia.Host=rtsp://some.media.server/somedir/
187
188
189 # image specific storage directories
190 # absolute directory, where the images are saved
191 Producer.Image.Path=/pub/Dokumente/Indymedia/de-tech/Mir/produced/images/
192
193 # images will be scaled down so that the size (both widht and height) are below:
194 Producer.Image.MaxSize = 640
195
196 # icons will be generated so that the size (both width and height) are below:
197 Producer.Image.MaxIconSize = 120
198
199 # descaling will only occur if at least the following percentage of either
200 #  the width or the height needs to be removed:
201 Producer.Image.MinDescalePercentage=10
202
203 # descaling will only occur if at least the following number of pixels needs
204 #  to be removed from either the width or the height: 
205 Producer.Image.MinDescaleReduction=10
206
207
208 # media specific storage directories
209 # absolute directory, where the media files are saved
210 Producer.Media.Path=/pub/Dokumente/Indymedia/de-tech/Mir/produced/media
211
212 # absolute directory, where the realmedia data files(ra and rm) are saved
213 # the ram files which point to the RealMedia.Host get saved in the regular Media dir
214 # this should make rsyncing to a separate streaming server much easier
215 Producer.RealMedia.Path=/pub/Dokumente/rtsp
216
217 # relativ directory, where the thumbnails will be saved
218 Producer.Image.IconPath=/icon
219
220 # Tiny Icons for the media types on the newswire summary.
221 # (right hand side of start page)
222 Producer.Icon.TinyImage=photo_small.gif
223 Producer.Icon.TinyAudio=audio_small.gif
224 Producer.Icon.TinyVideo=video_small.gif
225 Producer.Icon.TinyText=text_small.gif
226
227 #Medium sized icons used at various places
228 Producer.Icon.BigImage=photo_big.gif
229 Producer.Icon.BigAudio=audio_big.gif
230 Producer.Icon.BigVideo=video_big.gif
231 Producer.Icon.BigText=text_big.gif
232
233 #the style sheet used to turn html into xsl:fo
234 Producer.HTML2FOStyleSheet=/some/dir/mir/etc/producer/html2fo.xsl 
235
236
237 #
238 # edit with caution below this line
239 ######################################################################
240
241 #
242 #
243 # DATABASE SETUP
244 #
245
246 #
247 # specify your database
248
249 Database.poolMin=1
250 Database.poolMax=10
251 Database.poolResetTime=1.0
252 Database.PoolLog=log/pool.log
253 Database.Limit=20
254 Database.Username=postgres
255 Database.Password=
256 Database.Host=localhost
257 Database.Name=Mir
258
259 #
260 # this sets the adaptor to be used
261
262 Database.Adaptor=mir.storage.DatabaseAdaptorPostgresql
263
264 #
265 # configuration for adaptor postgres
266 # In this example, "Mir" is the dbname
267
268 Adaptor.PostgreSQL.URL=jdbc:postgresql://localhost:5432/Mir
269 Adaptor.PostgreSQL.Driver=org.postgresql.Driver
270
271 #
272 # Servlet / Module configurations
273 #
274
275 # don't change this unless you really know your i18n.
276 # The default encoding charset used in the written html files as well
277 # as the dynamic output html.
278 # also used for the HTML charset meta tag.
279 Mir.DefaultEncoding=UTF8
280
281 # this encoding is used for the HTML charset meta tag.
282 # it must be the html charset equivalent of the Java encoding above
283 # don't change this unless...
284 Mir.DefaultHTMLCharset=UTF-8
285
286
287
288
289 #
290 # config used for OpenIndy
291
292 OpenMir.TemplateDir=etc/open/
293 ServletModule.OpenIndy.CommentTemplate=comment.template
294 ServletModule.OpenIndy.CommentDoneTemplate=comment_done.template
295 ServletModule.OpenIndy.CommentDupeTemplate=comment_dupe.template
296 ServletModule.OpenIndy.PostingTemplate=posting.template
297 ServletModule.OpenIndy.PostingDoneTemplate=posting_done.template
298 ServletModule.OpenIndy.PostingDupeTemplate=posting_dupe.template
299 ServletModule.OpenIndy.PostingDisabledTemplate=posting_disabled.template
300 ServletModule.OpenIndy.SearchResultsTemplate=search_results.template
301 ServletModule.OpenIndy.PrepareMailTemplate=prepare_mail.template
302 ServletModule.OpenIndy.SentMailTemplate=sent_mail.template
303 ServletModule.OpenIndy.EmailIsFrom=mailer@somewhere.org
304 ServletModule.OpenIndy.SMTPServer=localhost
305 ServletModule.OpenIndy.ErrorTemplate=error.template
306 ServletModule.OpenIndy.UserErrorTemplate=usererror.template
307
308
309
310 Mir.TemplateDir=templates/admin/
311
312 Mir.LoginTemplate=login.template
313 Mir.StartTemplate=start_admin.template
314
315 Mir.ErrorTemplate=error.template
316 Mir.UserErrorTemplate=usererror.template
317
318 ServletModule.Themen.ConfirmTemplate=confirm.template
319 ServletModule.Themen.ObjektTemplate=topic.template
320 ServletModule.Themen.ListTemplate=topiclist.template
321
322 ServletModule.LinksImcs.ConfirmTemplate=confirm.template
323 ServletModule.LinksImcs.ObjektTemplate=linksimcs.template
324 ServletModule.LinksImcs.ListTemplate=linksimcslist.template
325
326 ServletModule.Users.ConfirmTemplate=confirm.template
327 ServletModule.Users.ObjektTemplate=user.template
328 ServletModule.Users.ListTemplate=userlist.template
329
330 ServletModule.Images.ConfirmTemplate=confirm.template
331 ServletModule.Images.ObjektTemplate=image.template
332 ServletModule.Images.ListTemplate=imagelist.template
333
334 ServletModule.Audio.ConfirmTemplate=confirm.template
335 ServletModule.Audio.ObjektTemplate=audio.template
336 ServletModule.Audio.ListTemplate=audiolist.template
337
338 ServletModule.Video.ConfirmTemplate=confirm.template
339 ServletModule.Video.ObjektTemplate=video.template
340 ServletModule.Video.ListTemplate=videolist.template
341
342 ServletModule.OtherMedia.ConfirmTemplate=confirm.template
343 ServletModule.OtherMedia.ObjektTemplate=media.template
344 ServletModule.OtherMedia.ListTemplate=medialist.template
345
346 ServletModule.Content.ConfirmTemplate=confirm.template
347 ServletModule.Content.ObjektTemplate=content.template
348 ServletModule.Content.ListTemplate=contentlist.template
349
350 ServletModule.Mediafolder.ConfirmTemplate=confirm.template
351 ServletModule.Mediafolder.ObjektTemplate=mediafolder.template
352 ServletModule.Mediafolder.ListTemplate=mediafolderlist.template
353
354 #
355 # config for ServletModuleComment - browsing/editing/deleting comments
356 ServletModule.Comment.ConfirmTemplate=confirm.template
357 ServletModule.Comment.ObjektTemplate=comment.template
358 ServletModule.Comment.ListTemplate=commentlist.template
359
360 #
361 # config for ServletModuleHidden - lists all hidden articles of one month
362 ServletModule.Hidden.ListTemplate=hiddenlist.template
363
364 #
365 # config for Breaking - browsing/editing/deleting breaking news
366 ServletModule.Breaking.ConfirmTemplate=confirm.template
367 ServletModule.Breaking.ObjektTemplate=breaking.template
368 ServletModule.Breaking.ListTemplate=breakinglist.template
369
370 #
371 # config for Breaking - editing text files
372 ServletModule.FileEdit.ConfirmTemplate=confirm.template
373 ServletModule.FileEdit.ObjektTemplate=fileedit.template
374 ServletModule.FileEdit.ListTemplate=fileeditlist.template
375
376 #
377 # config for messages - browsing/editing/deleting internal messages
378 ServletModule.Messages.ConfirmTemplate=confirm.template
379 ServletModule.Messages.ObjektTemplate=message.template
380 ServletModule.Messages.ListTemplate=messagelist.template
381
382 #
383 # config for languages - browsing/editing/deleting languages
384 ServletModule.Language.ConfirmTemplate=confirm.template
385 ServletModule.Language.ObjektTemplate=language.template
386 ServletModule.Language.ListTemplate=languagelist.template
387
388 #
389 # config for article type
390 ServletModule.ArticleType.ConfirmTemplate=confirm.template
391 ServletModule.ArticleType.EditTemplate=articletype.template
392 ServletModule.ArticleType.ListTemplate=articletypelist.template
393
394 #
395 # config for comment status
396 ServletModule.CommentStatus.ConfirmTemplate=confirm.template
397 ServletModule.CommentStatus.EditTemplate=commentstatus.template
398 ServletModule.CommentStatus.ListTemplate=commentstatuslist.template
399
400 #
401 # producer-related configs below
402 #
403
404 Producer.ExtLinkName=extlink.gif
405 Producer.IntLinkName=intlink.gif
406 Producer.MailLinkName=maillink.gif
407