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