fixing html whitelist bug
[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
192 # the url of the video-server
193 Producer.Video.Host=http://indy.code-fu.de/video
194
195 # the url of the audio-server
196 Producer.Audio.Host=http://indy.code-fu.de/audio
197
198 # the url of the image-server
199 Producer.Image.Host=http://indy.code-fu.de/images
200
201 # the url of the media-server
202 Producer.Media.Host=http://indy.code-fu.de/media
203
204 # the url of the real-media-server
205 Producer.RealMedia.Host=rtsp://some.media.server/somedir/
206
207
208 # image specific storage directories
209 # absolute directory, where the images are saved
210 Producer.Image.Path=/pub/Dokumente/Indymedia/de-tech/Mir/produced/images/
211
212 # images will be scaled down so that the size (both widht and height) are below:
213 Producer.Image.MaxSize = 640
214
215 # icons will be generated so that the size (both width and height) are below:
216 Producer.Image.MaxIconSize = 120
217
218 # descaling will only occur if at least the following percentage of either
219 #  the width or the height needs to be removed:
220 Producer.Image.MinDescalePercentage=10
221
222 # descaling will only occur if at least the following number of pixels needs
223 #  to be removed from either the width or the height:
224 Producer.Image.MinDescaleReduction=10
225
226
227 # media specific storage directories
228 # absolute directory, where the media files are saved
229 Producer.Media.Path=/pub/Dokumente/Indymedia/de-tech/Mir/produced/media
230
231 # absolute directory, where the realmedia data files(ra and rm) are saved
232 # the ram files which point to the RealMedia.Host get saved in the regular Media dir
233 # this should make rsyncing to a separate streaming server much easier
234 Producer.RealMedia.Path=/pub/Dokumente/rtsp
235
236 # relativ directory, where the thumbnails will be saved
237 Producer.Image.IconPath=/icon
238
239 # Tiny Icons for the media types on the newswire summary.
240 # (right hand side of start page)
241 Producer.Icon.TinyImage=photo_small.gif
242 Producer.Icon.TinyAudio=audio_small.gif
243 Producer.Icon.TinyVideo=video_small.gif
244 Producer.Icon.TinyText=text_small.gif
245
246 #Medium sized icons used at various places
247 Producer.Icon.BigImage=photo_big.gif
248 Producer.Icon.BigAudio=audio_big.gif
249 Producer.Icon.BigVideo=video_big.gif
250 Producer.Icon.BigText=text_big.gif
251
252 #the style sheet used to turn html into xsl:fo
253 Producer.HTML2FOStyleSheet=/some/dir/mir/etc/producer/html2fo.xsl
254
255 # the following lines are used to construct PDFs on the fly from one or more articles
256 # for the moment, if you want to change anything else about your pdfs, you
257 # will have to learn some java!
258 #
259 # keep in mind that there may not be enough room for all the text you enter as the
260 # value of one these options, if text doesn't appear, the only easy thing to do is
261 # use less text!
262 #
263 # also, be sure to adjust the corresponding line height if you change a font size...
264 # this may require some trial and error to get right
265 #
266 # Available font families are helvetica, courier, and times
267 #
268
269
270 # an image which will appear at the top of the first page
271
272 PDF.Header.Image=
273 PDF.Header.ImageHeight=0
274
275 #PDF.Header.Image=/home/john/mir/web/img/pdfbanner.png
276 #PDF.Header.ImageHeight=70
277
278 # a single line of big text which will appear at the top of the first page of all generated pdfs
279 # if you set the String to nothing, this will be skipped
280
281 PDF.Title.String=INDYMEDIA SOMEWHERE
282 PDF.Title.FontSize=24
283 PDF.Title.LineHeight=28
284 PDF.Title.FontFamily=courier
285
286 # footer is about two lines of small text which will appear at the bottom of every page
287
288 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.
289 PDF.Footer.Height=54
290 PDF.Footer.FontSize=12
291 PDF.Footer.FontFamily=helvetica
292
293 # how to format the index, i.e. the newsletter table of contents
294
295 PDF.Index.FontSize=12
296 PDF.Index.LineHeight=16
297 PDF.Index.FontFamily=helvetica
298
299 # how to format the meta-data, i.e. title, author, date
300
301 PDF.Meta.Height=36
302 PDF.Meta.FontSize=14
303 PDF.Meta.FontFamily=helvetica
304 RDF.Meta.DateFormat=yyyy-MM-dd HH:mm
305
306 # how to format the article description
307
308 PDF.Description.FontSize=12
309 PDF.Description.LineHeight=16
310 PDF.Description.FontFamily=helvetica
311
312 # how to format the article content
313
314 PDF.Content.FontSize=10
315 PDF.Content.LineHeight=16
316 PDF.Content.FontFamily=helvetica
317
318 # the formatting for images in gallery mode
319
320 PDF.BigImageCaption.FontSize=16
321 PDF.BigImageCaption.FontFamily=helvetica
322
323 # the formatting for the article source
324
325 PDF.Source.FontSize=12
326 PDF.Source.LineHeight=16
327 PDF.Source.FontFamily=courier
328
329
330
331
332 #
333 # the size paper your target audience will likely have in their printers.  pick one of A4 or LETTER
334 #
335
336 PDF.PageSize=A4
337
338 # the number of Objects which can fit in your MRUCache
339
340 Global.Cache.Items=15
341
342 #
343 # edit with caution below this line
344 ######################################################################
345
346 #
347 #
348 # DATABASE SETUP
349 #
350
351 Database.poolMin=1
352 Database.poolMax=10
353 Database.poolResetTime=1.0
354 Database.PoolLog=log/pool.log
355 Database.Limit=20
356 Database.Username=postgres
357 Database.Password=
358 Database.Host=localhost
359 Database.Name=Mir
360 Database.Port=5432
361 Database.Driver=org.postgresql.Driver
362
363
364 #
365 # Servlet / Module configurations
366 #
367
368 # don't change this unless you really know your i18n.
369 # The default encoding charset used in the written html files as well
370 # as the dynamic output html.
371 # also used for the HTML charset meta tag.
372 Mir.DefaultEncoding=UTF8
373
374 # this encoding is used for the HTML charset meta tag.
375 # it must be the html charset equivalent of the Java encoding above
376 # don't change this unless...
377 Mir.DefaultHTMLCharset=UTF-8
378
379 # Default timezone to display times in in admin, producers
380 Mir.DefaultTimezone= UTC
381
382 # Default date/time format
383 Mir.DefaultDateTimeFormat = yyyy-MM-dd HH:mm
384
385 # Compatibility feature: updated posting forms can
386 # support persistent uploads (that is, uploads remainig
387 # valid after validation errors). To support existing
388 # forms, by default it is off.
389 Localizer.OpenSession.PersistentUploadedFiles = 0
390
391 # Should support for ftp-like uploads (uploads done
392 # outside of mir, but included into postings) be 
393 # supported at all?
394 Localizer.OpenSession.AllowFTPUploads = 0
395
396 # When uploading ftp files, should a list of available
397 # files be displayed?
398 Localizer.OpenSession.AllowFTPUploadSelection = 0
399
400 # What is the place where files are uploaded?
401 Localizer.OpenSession.FTPDirectory = /somewhere
402
403 Localizer.OpenSession.article.EditTemplate = editarticle.template
404 Localizer.OpenSession.article.DupeTemplate = dupearticle.template
405 Localizer.OpenSession.article.DoneTemplate = donearticle.template
406 Localizer.OpenSession.article.UnsupportedMediaTemplate = unsupportedmediatype.template
407 Localizer.OpenSession.article.DefaultArticleType=newswire
408 Localizer.OpenSession.article.DefaultMediaFolder=openposting
409
410 Localizer.OpenSession.comment.EditTemplate = editcomment.template
411 Localizer.OpenSession.comment.DupeTemplate = dupecomment.template
412 Localizer.OpenSession.comment.DoneTemplate = donecomment.template
413 Localizer.OpenSession.comment.UnsupportedMediaTemplate = unsupportedmediatype.template
414 Localizer.OpenSession.comment.DefaultCommentStatus=normal
415 Localizer.OpenSession.comment.DefaultMediaFolder=openposting
416 Localizer.OpenSession.ErrorTemplate = sessionerror.template
417
418 Localizer.OpenSession.translation.EditTemplate=edittranslation.template
419 Localizer.OpenSession.translation.DupeTemplate=dupearticle.template
420 Localizer.OpenSession.translation.UnsupportedMediaTemplate=unsupportedmediatype.template
421 Localizer.OpenSession.translation.DoneTemplate=donetranslation.template
422
423
424 Localizer.OpenSession.email.PrepareTemplate = preparemail.template
425 Localizer.OpenSession.email.MailTemplate = email_article.template
426 Localizer.OpenSession.email.DoneTemplate =/sent_mail.template
427
428 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
429
430
431 #
432 # config used for OpenIndy
433
434 ServletModule.OpenIndy.CommentTemplate=comment.template
435 ServletModule.OpenIndy.CommentDoneTemplate=comment_done.template
436 ServletModule.OpenIndy.CommentDupeTemplate=comment_dupe.template
437 ServletModule.OpenIndy.PostingTemplate=posting.template
438 ServletModule.OpenIndy.PostingDoneTemplate=posting_done.template
439 ServletModule.OpenIndy.PostingDupeTemplate=posting_dupe.template
440 ServletModule.OpenIndy.PostingDisabledTemplate=posting_disabled.template
441 ServletModule.OpenIndy.SearchResultsTemplate=search_results.template
442 ServletModule.OpenIndy.PrepareMailTemplate=prepare_mail.template
443 ServletModule.OpenIndy.SentMailTemplate=sent_mail.template
444 ServletModule.OpenIndy.MailableArticleTemplate=email_article.template
445 ServletModule.OpenIndy.EmailIsFrom=mailer@somewhere.org
446 ServletModule.OpenIndy.SMTPServer=localhost
447 ServletModule.OpenIndy.ErrorTemplate=error.template
448 ServletModule.OpenIndy.UserErrorTemplate=usererror.template
449
450
451
452 Mir.TemplateDir=templates/admin/
453
454 Mir.LoginTemplate=login.template
455 Mir.StartTemplate=start_admin.template
456
457 Mir.ErrorTemplate=error.template
458 Mir.UserErrorTemplate=usererror.template
459
460 ServletModule.Default.ListSize = 30
461
462 ServletModule.Topics.DeleteConfirmationTemplate=confirm.template
463 ServletModule.Topics.EditTemplate=topic.template
464 ServletModule.Topics.ListTemplate=topiclist.template
465
466 ServletModule.Users.DeleteConfirmationTemplate=confirm.template
467 ServletModule.Users.EditTemplate=user.template
468 ServletModule.Users.ListTemplate=userlist.template
469
470 ServletModule.Images.DeleteConfirmationTemplate=confirm.template
471 ServletModule.Images.EditTemplate=image.template
472 ServletModule.Images.ListTemplate=imagelist.template
473
474 ServletModule.Audio.DeleteConfirmationTemplate=confirm.template
475 ServletModule.Audio.EditTemplate=audio.template
476 ServletModule.Audio.ListTemplate=audiolist.template
477
478 ServletModule.Video.DeleteConfirmationTemplate=confirm.template
479 ServletModule.Video.EditTemplate=video.template
480 ServletModule.Video.ListTemplate=videolist.template
481
482 ServletModule.OtherMedia.DeleteConfirmationTemplate=confirm.template
483 ServletModule.OtherMedia.EditTemplate=other.template
484 ServletModule.OtherMedia.ListTemplate=medialist.template
485
486 ServletModule.Content.DeleteConfirmationTemplate=confirm.template
487 ServletModule.Content.EditTemplate=content.template
488 ServletModule.Content.ListTemplate=contentlist.template
489
490 ServletModule.Mediafolder.DeleteConfirmationTemplate=confirm.template
491 ServletModule.Mediafolder.EditTemplate=mediafolder.template
492 ServletModule.Mediafolder.ListTemplate=mediafolderlist.template
493
494 ServletModule.Comment.DeleteConfirmationTemplate=confirm.template
495 ServletModule.Comment.EditTemplate=comment.template
496 ServletModule.Comment.ListTemplate=commentlist.template
497
498 ServletModule.Hidden.ListTemplate=hiddenlist.template
499
500 ServletModule.Breaking.DeleteConfirmationTemplate=confirm.template
501 ServletModule.Breaking.EditTemplate=breaking.template
502 ServletModule.Breaking.ListTemplate=breakinglist.template
503
504 ServletModule.FileEdit.DeleteConfirmationTemplate=confirm.template
505 ServletModule.FileEdit.EditTemplate=fileedit.template
506 ServletModule.FileEdit.ListTemplate=fileeditlist.template
507
508 ServletModule.Message.DeleteConfirmationTemplate=confirm.template
509 ServletModule.Message.EditTemplate=message.template
510 ServletModule.Message.ListTemplate=messagelist.template
511
512 ServletModule.Language.DeleteConfirmationTemplate=confirm.template
513 ServletModule.Language.EditTemplate=language.template
514 ServletModule.Language.ListTemplate=languagelist.template
515
516 ServletModule.ArticleType.DeleteConfirmationTemplate=confirm.template
517 ServletModule.ArticleType.EditTemplate=articletype.template
518 ServletModule.ArticleType.ListTemplate=articletypelist.template
519
520 ServletModule.CommentStatus.DeleteConfirmationTemplate=confirm.template
521 ServletModule.CommentStatus.EditTemplate=commentstatus.template
522 ServletModule.CommentStatus.ListTemplate=commentstatuslist.template
523
524 ServletModule.MediaType.DeleteConfirmationTemplate=confirm.template
525 ServletModule.MediaType.EditTemplate=mediatype.template
526 ServletModule.MediaType.ListTemplate=mediatypelist.template
527
528
529 #
530 # Object store configuration
531 #
532
533 StoreContainer.EntityDefaultSize= 45
534 StoreContainer.EntityListDefaultSize= 15
535 StorableObjectEntity.Entity.DefaultSize= 300
536 StorableObjectEntity.EntityList.DefaultSize= 100
537 EntityTopics.Entity.DefaultSize=200
538 EntityTopics.EntityList.DefaultSize=20
539
540
541
542
543
544
545 #
546 # config for abuse
547 ServletModule.Abuse.EditFilter.Template = filter.template
548 ServletModule.Abuse.ListFilters.Template = filterlist.template
549 ServletModule.Abuse.EditFilterGroup.Template = filtergroup.template
550 ServletModule.Abuse.ListFilterGroups.Template = filtergrouplist.template
551 ServletModule.Abuse.ViewLog.Template = abuse.log.template
552 ServletModule.Abuse.Main.Template = abuse.template
553
554 #
555 # producer-related configs below
556 #
557
558 Producer.ExtLinkName=extlink.gif
559 Producer.IntLinkName=intlink.gif
560 Producer.MailLinkName=maillink.gif
561
562 # should the <Bundle producer tag be backwards compatible
563 # (this means that old bundle paths get mapped to new ones)
564 Producer.BundleCompatibility=1