Changes which allow images to be resized by Mir and saved in the filesystem if an...
[mir.git] / source / default.properties
1 #
2 # GENERAL SETUP
3 #
4 # This is a full list of defaults options. To configure your site
5 # do NOT change this file. You can override all of these values in
6 # your etc/config.properties
7 #
8
9 ### mir/imc information
10 Mir.Name=mir.indymedia.org
11 Mir.Shortname=mir
12 Mir.Contact-email.address=mir-coders@lists.indymedia.org
13 Mir.Contact-email.name=mir-coders mailinglist
14 Mir.Tech-email.address=mir-coders@lists.indymedia.org
15 Mir.Tech-email.name=mir-coders mailinglist
16 Mir.Public-email.address=mir-coders@lists.indymedia.org
17 Mir.Public-email.name=mir-coders mailinglist
18
19 Mir.Version=1.1.0rc0
20
21 # The name of the abuse config file (relative to the WEB-INF dir)
22 Abuse.Config=abuse.properties
23 # The name of the cookie that can be used to thwart trolls
24 #    (The name is deliberately misleading)
25 Abuse.CookieName=SessionIdentifier
26
27 # If equal to 1, the IP log can't be used
28 Abuse.DisallowIPLogging=0
29
30 # The time the cookie will remain active in hours
31 #   168 = 1 week
32 Abuse.CookieMaxAge=168
33
34
35 #where to put the lucene index
36 IndexPath=index
37
38 TempDir=/tmp
39
40 Log.LogClass = mir.log.log4j.LoggerImpl
41 Log.log4j.ConfigurationFile = etc/log4j.properties
42 Log.Home = log
43
44 Mir.Localizer=mircoders.localizer.basic.MirBasicLocalizer
45
46 # The location of the producer specifiations
47 Mir.Localizer.ProducerConfigFile=etc/producer/producers.xml
48
49 # Settings for the admin login:
50 # If the default language is left empty, it will set the accept-language of
51 # the client browser as the default.
52 Mir.Login.DefaultLanguage=en
53
54 # The available languages in the login form:
55 Mir.Login.Languages=en;de;fr;nl;es;pt;eu;sv;tr;zh;gz
56
57 # For missing values, the FallbackLanguage is used as default
58 Mir.Admin.FallbackLanguage=en
59
60 # Show who's logged in?
61 Mir.Admin.ShowLoggedinUsers=1
62
63 # Log admin activity?
64 Mir.Admin.LogAdminActivity=0
65
66 # Limit the length of text shown in lists (-1 means no limit)
67 Mir.Admin.ListTextLengthLimit=-1
68
69 # Which usernames have admin priviliges (, seperated usernames)
70 AccessControl.SuperUsers = admin
71
72 # Locking enabled?
73 AccessControl.LockingEnabled = 0
74
75 # If locking enabled, should users lock articles before they
76 #    can edit?
77 AccessControl.LockingOptional = 1
78
79 # the templates
80 Mir.Localizer.Producer.GeneratorLibrary= default=freemarker(etc/producer/)
81 Mir.Localizer.Admin.GeneratorLibrary= default=freemarker(templates/admin/),preview=freemarker(etc/producer)
82 Mir.Localizer.OpenPosting.GeneratorLibrary= default=freemarker(etc/open/)
83
84 # Should an XSS preventing interceptor be used by the producer subsystem?
85 Mir.Producer.UseInterceptor=1
86
87 # How should the custom operations (hide etc) in article and comment lists
88 # be presented?
89 # 0 = links, 1 = checkboxes, 2 = a listbox
90 Mir.Localizer.Admin.ListOperationsFlavor=2
91
92 # Article previews, a comma seperated list of name = generator
93 Mir.Localizer.Admin.ArticlePreview = \
94   default = preview::article.template
95 Mir.Localizer.Admin.ArticlePreviewLanguage=en
96
97 # How should the topics be presented on the article edit page?
98 #
99 # <key>:<listtype>:<listparameter>:<condition>:<order>
100 # multiple entries can be specified, can be seperated by a ,
101 #
102 # key:
103 #     the bundle key to use for the field label
104 # listtype:
105 #     0 = in a multiselect list box, 1 = checkboxes, 2 = a dropdown listbox
106 # listparameter:
107 #     number of rows for multiselect list box, number of columns for checkboxes
108 # condition:
109 #     what sql condition should the topics of this category be of
110 # order:
111 #     what sql order should the topics be ordered by
112
113 Mir.Localizer.Admin.TopicLists = \
114    content.topic:1:3::title
115
116 # enable deletion of comments/articles?
117 Mir.Localizer.Admin.AllowDeleteComment=1
118 Mir.Localizer.Admin.AllowDeleteArticle=1
119
120 # Article Preview Link URL (Link to produced articles from within admin)
121 Comment.PublicUrl=/en/${date.formatted.yyyy}/${date.formatted.MM}/${id}.shtml
122 Article.PublicUrl=/en/${to_content.date.formatted.yyyy}/${to_content.date.formatted.MM}/${to_content.id}.shtml
123
124 # which 'quick' operations should be available in the top-left box?
125 Mir.Localizer.Admin.AdministerOperations= \
126    comments:module=Comment&do=list
127
128 # Which producers need to be called after an article (resp. a comment) is posted
129 Mir.Localizer.OpenPosting.ContentProducers= media.new;articles.changed;startpage.generate;synchronization.run
130 Mir.Localizer.OpenPosting.CommentProducers= articles.changed;synchronization.run
131
132 # Which producers need to be called after the "produce all new" link is clicked from admin
133 Mir.Localizer.Producer.ProducerRecipes= \
134   allnew = media.new;articles.changed;startpage.run;synchronization.run
135
136
137 #use rsync to mirror the website to a remote-host
138 Rsync=no
139 Rsync.Script.Path=/var/www/bin/rsync-copy
140
141 # the maximum allowed size of an uploaded media file in KB.
142 MaxMediaUploadSize=20000
143
144 # the maximum number of allowed media items to upload at once.
145 ServletModule.OpenIndy.MaxMediaUploadItems=20
146
147 # the default number of media items to upload at once
148 ServletModule.OpenIndy.DefaultMediaUploadItems=1
149
150
151 #
152 #
153 # STATIC SITE CONFIG
154 #
155
156 # the url of the static site
157 Producer.ProductionHost=http://indy.code-fu.de
158
159 # the url of the public site
160 Producer.PublicationHost=http://indy.code-fu.de
161
162 # Produrce.StorageRoot is the directory, in which
163 # the generated HTML pages will be stored
164 Producer.StorageRoot=/pub/Dokumente/Indymedia/de-tech/Mir/produced
165
166 # FileEdit module
167 #   a list of directories to edit
168 #   format:
169 #      <name>:<path>:<file filter>:<0|1 (recursion off or on)> [, ....]
170
171 ServletModule.FileEdit.Configuration= \
172   includes:/pub/Dokumente/Indymedia/de-tech/Mir/produced/inc:.*\\.inc:1
173
174 #
175 #
176 # DYNAMIC SITE CONFIG
177 #
178
179 # the url of the openposting-servlet
180 Producer.OpenAction=http://indy.code-fu.de/Mir/servlet/OpenMir
181
182 # use this property if the pages are not produced under the docRoot
183 # of the webserver. all links in the produced pages are prepended
184 # with Producer.DocRoot
185 Producer.DocRoot=
186
187 Producer.ActionServlet=/servlet/Mir
188
189 # this is the name of the subdirectory where the image-dir
190 # will be linked to.
191 Producer.ImageRoot=/img
192
193 # path to ImageMagick executables. Default is "" (nothing), which
194 # means executables will be searched using the default system PATH
195 # example:Producer.Image.ImageMagickPath=/usr/local/ImageMagick/bin
196 #
197 Producer.Image.ImageMagickPath=
198
199 # the url of the video-server
200 Producer.Video.Host=http://indy.code-fu.de/video
201
202 # the url of the audio-server
203 Producer.Audio.Host=http://indy.code-fu.de/audio
204
205 # the url of the image-server
206 Producer.Image.Host=http://indy.code-fu.de/images
207
208 # the url of the media-server
209 Producer.Media.Host=http://indy.code-fu.de/media
210
211 # the url of the real-media-server
212 Producer.RealMedia.Host=rtsp://some.media.server/somedir/
213
214
215 # image specific storage directories
216 # absolute directory, where the images are saved
217 Producer.Image.Path=/pub/Dokumente/Indymedia/de-tech/Mir/produced/images/
218
219 # should images be resized?
220 Producer.Image.ScaleImages=0
221
222 # absolute directory where image originals are saved if image resizing is enabled
223 # this can be ignored if image scaling is not being used
224 #
225 Producer.ImagesOriginalDir.Path=/pub/Dokumente/Indymedia/de-tech/Mir/produced/images/raw
226
227 # relative path from the site root where the templates can find raw (unresized) images:
228 # this can be ignored if image scaling is not being used
229 Producer.ImagesOriginalDir.RelPath=/images/raw
230
231 # images will be scaled down so that the size (both widht and height) are below:
232 Producer.Image.MaxSize = 640
233
234 # icons will be generated so that the size (both width and height) are below:
235 Producer.Image.MaxIconSize = 120
236
237 # descaling will only occur if at least the following percentage of either
238 #  the width or the height needs to be removed:
239 Producer.Image.MinDescalePercentage=10
240
241 # descaling will only occur if at least the following number of pixels needs
242 #  to be removed from either the width or the height:
243 Producer.Image.MinDescaleReduction=10
244
245
246 # media specific storage directories
247 # absolute directory, where the media files are saved
248 Producer.Media.Path=/pub/Dokumente/Indymedia/de-tech/Mir/produced/media
249
250 # absolute directory, where the realmedia data files(ra and rm) are saved
251 # the ram files which point to the RealMedia.Host get saved in the regular Media dir
252 # this should make rsyncing to a separate streaming server much easier
253 Producer.RealMedia.Path=/pub/Dokumente/rtsp
254
255 # relativ directory, where the thumbnails will be saved
256 Producer.Image.IconPath=/icon
257
258 # Tiny Icons for the media types on the newswire summary.
259 # (right hand side of start page)
260 Producer.Icon.TinyImage=photo_small.gif
261 Producer.Icon.TinyAudio=audio_small.gif
262 Producer.Icon.TinyVideo=video_small.gif
263 Producer.Icon.TinyText=text_small.gif
264
265 #Medium sized icons used at various places
266 Producer.Icon.BigImage=photo_big.gif
267 Producer.Icon.BigAudio=audio_big.gif
268 Producer.Icon.BigVideo=video_big.gif
269 Producer.Icon.BigText=text_big.gif
270
271 #the style sheet used to turn html into xsl:fo
272 Producer.HTML2FOStyleSheet=/some/dir/mir/etc/producer/html2fo.xsl
273
274 # the following lines are used to construct PDFs on the fly from one or more articles
275 # for the moment, if you want to change anything else about your pdfs, you
276 # will have to learn some java!
277 #
278 # keep in mind that there may not be enough room for all the text you enter as the
279 # value of one these options, if text doesn't appear, the only easy thing to do is
280 # use less text!
281 #
282 # also, be sure to adjust the corresponding line height if you change a font size...
283 # this may require some trial and error to get right
284 #
285 # Available font families are helvetica, courier, and times
286 #
287
288
289 # an image which will appear at the top of the first page
290
291 PDF.Header.Image=
292 PDF.Header.ImageHeight=0
293
294 #PDF.Header.Image=/home/john/mir/web/img/pdfbanner.png
295 #PDF.Header.ImageHeight=70
296
297 # a single line of big text which will appear at the top of the first page of all generated pdfs
298 # if you set the String to nothing, this will be skipped
299
300 PDF.Title.String=INDYMEDIA SOMEWHERE
301 PDF.Title.FontSize=24
302 PDF.Title.LineHeight=28
303 PDF.Title.FontFamily=courier
304
305 # Source will be expanded to come to a URL to the article
306 PDF.Source=${config["Producer.PublicationHost"]}${config['Mir.Login.DefaultLanguage']}/${article.date.formatted['yyyy/MM']}/${article.id}.shtml
307
308 # footer is about two lines of small text which will appear at the bottom of every page
309 PDF.Footer.String=Indymedia does blah.  Content is good, and free to use for non-commercial purposes under the Open Content license. if you have questions, email someone.
310 PDF.Footer.Height=54
311 PDF.Footer.FontSize=12
312 PDF.Footer.FontFamily=helvetica
313
314 # how to format the index, i.e. the newsletter table of contents
315
316 PDF.Index.FontSize=12
317 PDF.Index.LineHeight=16
318 PDF.Index.FontFamily=helvetica
319
320 # how to format the meta-data, i.e. title, author, date
321
322 PDF.Meta.Height=36
323 PDF.Meta.FontSize=14
324 PDF.Meta.FontFamily=helvetica
325 RDF.Meta.DateFormat=yyyy-MM-dd HH:mm
326
327 # how to format the article description
328
329 PDF.Description.FontSize=12
330 PDF.Description.LineHeight=16
331 PDF.Description.FontFamily=helvetica
332
333 # how to format the article content
334
335 PDF.Content.FontSize=10
336 PDF.Content.LineHeight=16
337 PDF.Content.FontFamily=helvetica
338
339 # the formatting for images in gallery mode
340
341 PDF.BigImageCaption.FontSize=16
342 PDF.BigImageCaption.FontFamily=helvetica
343
344 # the formatting for the article source
345
346 PDF.Source.FontSize=12
347 PDF.Source.LineHeight=16
348 PDF.Source.FontFamily=courier
349
350
351
352
353 #
354 # the size paper your target audience will likely have in their printers.  pick one of A4 or LETTER
355 #
356
357 PDF.PageSize=A4
358
359 # the number of Objects which can fit in your MRUCache
360
361 Global.Cache.Items=15
362
363 #
364 # edit with caution below this line
365 ######################################################################
366
367 #
368 #
369 # DATABASE SETUP
370 #
371
372 Database.poolMin=1
373 Database.poolMax=10
374 Database.poolResetTime=1.0
375 Database.PoolLog=log/pool.log
376 Database.Limit=20
377 Database.Username=postgres
378 Database.Password=
379 Database.Host=localhost
380 Database.Name=Mir
381 Database.Port=5432
382 Database.Driver=org.postgresql.Driver
383
384
385 #
386 # Servlet / Module configurations
387 #
388
389 # don't change this unless you really know your i18n.
390 # The default encoding charset used in the written html files as well
391 # as the dynamic output html.
392 # also used for the HTML charset meta tag.
393 Mir.DefaultEncoding=UTF8
394
395 # this encoding is used for the HTML charset meta tag.
396 # it must be the html charset equivalent of the Java encoding above
397 # don't change this unless...
398 Mir.DefaultHTMLCharset=UTF-8
399
400 # Default timezone to display times in in admin, producers
401 Mir.DefaultTimezone= UTC
402
403 # Default date/time format
404 Mir.DefaultDateTimeFormat = yyyy-MM-dd HH:mm
405
406 # Compatibility feature: updated posting forms can
407 # support persistent uploads (that is, uploads remainig
408 # valid after validation errors). To support existing
409 # forms, by default it is off.
410 Localizer.OpenSession.PersistentUploadedFiles = 0
411
412 # Should support for ftp-like uploads (uploads done
413 # outside of mir, but included into postings) be
414 # supported at all?
415 Localizer.OpenSession.AllowFTPUploads = 0
416
417 # When uploading ftp files, should a list of available
418 # files be displayed?
419 Localizer.OpenSession.AllowFTPUploadSelection = 0
420
421 # What is the place where files are uploaded?
422 Localizer.OpenSession.FTPDirectory = /somewhere
423
424 Localizer.OpenSession.article.EditTemplate = editarticle.template
425 Localizer.OpenSession.article.DupeTemplate = dupearticle.template
426 Localizer.OpenSession.article.DoneTemplate = donearticle.template
427 Localizer.OpenSession.article.UnsupportedMediaTemplate = unsupportedmediatype.template
428 Localizer.OpenSession.article.DefaultArticleType=newswire
429 Localizer.OpenSession.article.DefaultMediaFolder=openposting
430
431 Localizer.OpenSession.comment.EditTemplate = editcomment.template
432 Localizer.OpenSession.comment.DupeTemplate = dupecomment.template
433 Localizer.OpenSession.comment.DoneTemplate = donecomment.template
434 Localizer.OpenSession.comment.UnsupportedMediaTemplate = unsupportedmediatype.template
435 Localizer.OpenSession.comment.DefaultCommentStatus=normal
436 Localizer.OpenSession.comment.DefaultMediaFolder=openposting
437 Localizer.OpenSession.ErrorTemplate = sessionerror.template
438
439 Localizer.OpenSession.translation.EditTemplate=edittranslation.template
440 Localizer.OpenSession.translation.DupeTemplate=dupearticle.template
441 Localizer.OpenSession.translation.UnsupportedMediaTemplate=unsupportedmediatype.template
442 Localizer.OpenSession.translation.DoneTemplate=donetranslation.template
443
444
445 Localizer.OpenSession.email.PrepareTemplate = preparemail.template
446 Localizer.OpenSession.email.MailTemplate = email_article.template
447 Localizer.OpenSession.email.DoneTemplate =/sent_mail.template
448
449 Localizer.HTML.Whitelist=a;img;h1;h2;h3;h4;h5;h6;br;form;input;hr;strong;font;b;i;em;p;table;tr;td;th;ul;ol;li
450
451
452 #
453 # config used for OpenIndy
454
455 ServletModule.OpenIndy.CommentTemplate=comment.template
456 ServletModule.OpenIndy.CommentDoneTemplate=comment_done.template
457 ServletModule.OpenIndy.CommentDupeTemplate=comment_dupe.template
458 ServletModule.OpenIndy.PostingTemplate=posting.template
459 ServletModule.OpenIndy.PostingDoneTemplate=posting_done.template
460 ServletModule.OpenIndy.PostingDupeTemplate=posting_dupe.template
461 ServletModule.OpenIndy.PostingDisabledTemplate=posting_disabled.template
462 ServletModule.OpenIndy.SearchResultsTemplate=search_results.template
463 ServletModule.OpenIndy.PrepareMailTemplate=prepare_mail.template
464 ServletModule.OpenIndy.SentMailTemplate=sent_mail.template
465 ServletModule.OpenIndy.MailableArticleTemplate=email_article.template
466 ServletModule.OpenIndy.EmailIsFrom=mailer@somewhere.org
467 ServletModule.OpenIndy.SMTPServer=localhost
468 ServletModule.OpenIndy.ErrorTemplate=error.template
469 ServletModule.OpenIndy.UserErrorTemplate=usererror.template
470
471
472
473 Mir.TemplateDir=templates/admin/
474
475 Mir.LoginTemplate=login.template
476 Mir.StartTemplate=start_admin.template
477
478 Mir.ErrorTemplate=error.template
479 Mir.UserErrorTemplate=usererror.template
480
481 ServletModule.Default.ListSize = 30
482
483 ServletModule.Topics.DeleteConfirmationTemplate=confirm.template
484 ServletModule.Topics.EditTemplate=topic.template
485 ServletModule.Topics.ListTemplate=topiclist.template
486
487 ServletModule.Users.DeleteConfirmationTemplate=confirm.template
488 ServletModule.Users.EditTemplate=user.template
489 ServletModule.Users.ListTemplate=userlist.template
490
491 ServletModule.Images.DeleteConfirmationTemplate=confirm.template
492 ServletModule.Images.EditTemplate=image.template
493 ServletModule.Images.ListTemplate=imagelist.template
494
495 ServletModule.Audio.DeleteConfirmationTemplate=confirm.template
496 ServletModule.Audio.EditTemplate=audio.template
497 ServletModule.Audio.ListTemplate=audiolist.template
498
499 ServletModule.Video.DeleteConfirmationTemplate=confirm.template
500 ServletModule.Video.EditTemplate=video.template
501 ServletModule.Video.ListTemplate=videolist.template
502
503 ServletModule.OtherMedia.DeleteConfirmationTemplate=confirm.template
504 ServletModule.OtherMedia.EditTemplate=other.template
505 ServletModule.OtherMedia.ListTemplate=medialist.template
506
507 ServletModule.Content.DeleteConfirmationTemplate=confirm.template
508 ServletModule.Content.EditTemplate=content.template
509 ServletModule.Content.ListTemplate=contentlist.template
510
511 ServletModule.Mediafolder.DeleteConfirmationTemplate=confirm.template
512 ServletModule.Mediafolder.EditTemplate=mediafolder.template
513 ServletModule.Mediafolder.ListTemplate=mediafolderlist.template
514
515 ServletModule.Comment.DeleteConfirmationTemplate=confirm.template
516 ServletModule.Comment.EditTemplate=comment.template
517 ServletModule.Comment.ListTemplate=commentlist.template
518
519 ServletModule.Hidden.ListTemplate=hiddenlist.template
520
521 ServletModule.Breaking.DeleteConfirmationTemplate=confirm.template
522 ServletModule.Breaking.EditTemplate=breaking.template
523 ServletModule.Breaking.ListTemplate=breakinglist.template
524
525 ServletModule.FileEdit.DeleteConfirmationTemplate=confirm.template
526 ServletModule.FileEdit.EditTemplate=fileedit.template
527 ServletModule.FileEdit.ListTemplate=fileeditlist.template
528
529 ServletModule.Message.DeleteConfirmationTemplate=confirm.template
530 ServletModule.Message.EditTemplate=message.template
531 ServletModule.Message.ListTemplate=messagelist.template
532
533 ServletModule.Language.DeleteConfirmationTemplate=confirm.template
534 ServletModule.Language.EditTemplate=language.template
535 ServletModule.Language.ListTemplate=languagelist.template
536
537 ServletModule.ArticleType.DeleteConfirmationTemplate=confirm.template
538 ServletModule.ArticleType.EditTemplate=articletype.template
539 ServletModule.ArticleType.ListTemplate=articletypelist.template
540
541 ServletModule.CommentStatus.DeleteConfirmationTemplate=confirm.template
542 ServletModule.CommentStatus.EditTemplate=commentstatus.template
543 ServletModule.CommentStatus.ListTemplate=commentstatuslist.template
544
545 ServletModule.MediaType.DeleteConfirmationTemplate=confirm.template
546 ServletModule.MediaType.EditTemplate=mediatype.template
547 ServletModule.MediaType.ListTemplate=mediatypelist.template
548
549
550 #
551 # Object store configuration
552 #
553
554 StoreContainer.EntityDefaultSize= 45
555 StoreContainer.EntityListDefaultSize= 15
556 StorableObjectEntity.Entity.DefaultSize= 300
557 StorableObjectEntity.EntityList.DefaultSize= 100
558 EntityTopics.Entity.DefaultSize=200
559 EntityTopics.EntityList.DefaultSize=20
560
561
562
563
564
565
566 #
567 # config for abuse
568 ServletModule.Abuse.EditFilter.Template = filter.template
569 ServletModule.Abuse.ListFilters.Template = filterlist.template
570 ServletModule.Abuse.EditFilterGroup.Template = filtergroup.template
571 ServletModule.Abuse.ListFilterGroups.Template = filtergrouplist.template
572 ServletModule.Abuse.ViewLog.Template = abuse.log.template
573 ServletModule.Abuse.Main.Template = abuse.template
574
575 #
576 # producer-related configs below
577 #
578
579 Producer.ExtLinkName=extlink.gif
580 Producer.IntLinkName=intlink.gif
581 Producer.MailLinkName=maillink.gif
582
583 # should the <Bundle producer tag be backwards compatible
584 # (this means that old bundle paths get mapped to new ones)
585 Producer.BundleCompatibility=1