restriction of user activity: concept of super-users: the only ones that can add...
[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;gz
81
82 # For missing values, the FallbackLanguage is used as default
83 Mir.Admin.FallbackLanguage=en
84
85
86 # Which usernames have admin priviliges (, seperated usernames)
87 AccessControl.SuperUsers = admin
88
89 # the templates
90 Mir.Localizer.Producer.GeneratorLibrary= default=freemarker(etc/producer/)
91 Mir.Localizer.Admin.GeneratorLibrary= default=freemarker(templates/admin/)
92 Mir.Localizer.OpenPosting.GeneratorLibrary= default=freemarker(etc/open/)
93
94 # How should the custom operations (hide etc) in article and comment lists
95 # be presented?
96 # 0 = links, 1 = checkboxes, 2 = a listbox
97 Mir.Localizer.Admin.ListOperationsFlavor=1
98
99 # How should the topics be presented on the article edit page?
100 # 0 = in a multiselect list box, 1 = checkboxes
101 Mir.Localizer.Admin.TopicListFlavor=1
102
103 # For the checkboxes flavour, how many columns should there be?
104 Mir.Localizer.Admin.TopicListColumns=3
105
106 # In which order should the topic appear?
107 Mir.Localizer.Admin.TopicListOrder=title
108
109 # enable deletion of comments/articles?
110 Mir.Localizer.Admin.AllowDeleteComment=1
111 Mir.Localizer.Admin.AllowDeleteArticle=1
112
113 # Article Preview Link URL (Link to produced articles from within admin)
114 ContentList.ArticleLink=http://production.indy.code-foo.org/en/${date.formatted.yyyy}/${date.formatted.MM}/${id}.shtml
115 CommentList.ArticleLink=http://production.indy.code-foo.org/en/${co_content.date.formatted.yyyy}/${to_content.date.formatted.MM}/${to_content.id}.shtml
116
117 # enable deletion of comments/articles?
118 Mir.Localizer.Admin.AdministerOperations= \
119    comments:module=Comment&do=list
120
121
122 # Which producers need to be called after an article (resp. a comment) is posted
123 Mir.Localizer.OpenPosting.ContentProducers= media.new;articles.changed;startpage.generate;synchronization.run
124 Mir.Localizer.OpenPosting.CommentProducers= articles.changed;synchronization.run
125
126 # Which producers need to be called after the "produce all new" link is clicked from admin
127 Mir.Localizer.Producer.AllNewProducers= media.new;articles.changed;startpage.run;synchronization.run
128
129
130 #note that you can't make pdf's without making fo's
131 #this is actually now set in producers.xml
132 #but these summarize what is said in there for the benefit of OpenMir
133 GenerateFO=yes
134 GeneratePDF=yes
135
136 #use rsync to mirror the website to a remote-host
137 Rsync=no
138 Rsync.Script.Path=/var/www/bin/rsync-copy
139
140 # the maximum allowed size of an uploaded media file in KB.
141 MaxMediaUploadSize=20000
142
143 # the maximum number of allowed media items to upload at once.
144 ServletModule.OpenIndy.MaxMediaUploadItems=20
145
146 # the default number of media items to upload at once
147 ServletModule.OpenIndy.DefaultMediaUploadItems=1
148
149
150 #
151 #
152 # STATIC SITE CONFIG
153 #
154
155 # the url of the static site
156 Producer.ProductionHost=http://indy.code-fu.de
157
158 # the url of the public site
159 Producer.PublicationHost=http://indy.code-fu.de
160
161 # Produrce.StorageRoot is the directory, in which
162 # the generated HTML pages will be stored
163 Producer.StorageRoot=/pub/Dokumente/Indymedia/de-tech/Mir/produced
164
165 # FileEdit module
166 #   a list of directories to edit
167 #   format: 
168 #      <name>:<path>:<file filter>:<0|1 (recursion off or on)> [, ....]
169
170 ServletModule.FileEdit.Configuration= \
171   includes:/pub/Dokumente/Indymedia/de-tech/Mir/produced/inc:.*\\.inc:1
172
173 #
174 #
175 # DYNAMIC SITE CONFIG
176 #
177
178 # the url of the openposting-servlet
179 Producer.OpenAction=http://indy.code-fu.de/Mir/servlet/OpenMir
180
181 # use this property if the pages are not produced under the docRoot
182 # of the webserver. all links in the produced pages are prepended
183 # with Producer.DocRoot
184 Producer.DocRoot=
185
186 Producer.ActionServlet=/servlet/Mir
187
188 # this is the name of the subdirectory where the image-dir
189 # will be linked to.
190 Producer.ImageRoot=/img
191
192
193 # the url of the video-server
194 Producer.Video.Host=http://indy.code-fu.de/video
195
196 # the url of the audio-server
197 Producer.Audio.Host=http://indy.code-fu.de/audio
198
199 # the url of the image-server
200 Producer.Image.Host=http://indy.code-fu.de/images
201
202 # the url of the media-server
203 Producer.Media.Host=http://indy.code-fu.de/media
204
205 # the url of the real-media-server
206 Producer.RealMedia.Host=rtsp://some.media.server/somedir/
207
208
209 # image specific storage directories
210 # absolute directory, where the images are saved
211 Producer.Image.Path=/pub/Dokumente/Indymedia/de-tech/Mir/produced/images/
212
213 # images will be scaled down so that the size (both widht and height) are below:
214 Producer.Image.MaxSize = 640
215
216 # icons will be generated so that the size (both width and height) are below:
217 Producer.Image.MaxIconSize = 120
218
219 # descaling will only occur if at least the following percentage of either
220 #  the width or the height needs to be removed:
221 Producer.Image.MinDescalePercentage=10
222
223 # descaling will only occur if at least the following number of pixels needs
224 #  to be removed from either the width or the height:
225 Producer.Image.MinDescaleReduction=10
226
227
228 # media specific storage directories
229 # absolute directory, where the media files are saved
230 Producer.Media.Path=/pub/Dokumente/Indymedia/de-tech/Mir/produced/media
231
232 # absolute directory, where the realmedia data files(ra and rm) are saved
233 # the ram files which point to the RealMedia.Host get saved in the regular Media dir
234 # this should make rsyncing to a separate streaming server much easier
235 Producer.RealMedia.Path=/pub/Dokumente/rtsp
236
237 # relativ directory, where the thumbnails will be saved
238 Producer.Image.IconPath=/icon
239
240 # Tiny Icons for the media types on the newswire summary.
241 # (right hand side of start page)
242 Producer.Icon.TinyImage=photo_small.gif
243 Producer.Icon.TinyAudio=audio_small.gif
244 Producer.Icon.TinyVideo=video_small.gif
245 Producer.Icon.TinyText=text_small.gif
246
247 #Medium sized icons used at various places
248 Producer.Icon.BigImage=photo_big.gif
249 Producer.Icon.BigAudio=audio_big.gif
250 Producer.Icon.BigVideo=video_big.gif
251 Producer.Icon.BigText=text_big.gif
252
253 #the style sheet used to turn html into xsl:fo
254 Producer.HTML2FOStyleSheet=/some/dir/mir/etc/producer/html2fo.xsl
255
256 # the following lines are used to construct PDFs on the fly from one or more articles
257 # for the moment, if you want to change anything else about your pdfs, you 
258 # will have to learn some java!
259 #
260 # keep in mind that there may not be enough room for all the text you enter as the 
261 # value of one these options, if text doesn't appear, the only easy thing to do is 
262 # use less text!
263 #
264 # also, be sure to adjust the corresponding line height if you change a font size...
265 # this may require some trial and error to get right
266 #
267 # Available font families are helvetica, courier, and times
268 #
269
270
271 # an image which will appear at the top of the first page
272
273 PDF.Header.Image=
274 PDF.Header.ImageHeight=0
275
276 #PDF.Header.Image=/home/john/mir/web/img/pdfbanner.png
277 #PDF.Header.ImageHeight=70
278
279 # a single line of big text which will appear at the top of the first page of all generated pdfs
280 # if you set the String to nothing, this will be skipped
281
282 PDF.Title.String=INDYMEDIA SOMEWHERE
283 PDF.Title.FontSize=24
284 PDF.Title.LineHeight=28
285 PDF.Title.FontFamily=courier
286
287 # footer is about two lines of small text which will appear at the bottom of every page 
288
289 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.
290 PDF.Footer.Height=54
291 PDF.Footer.FontSize=12
292 PDF.Footer.FontFamily=helvetica 
293
294 # how to format the index, i.e. the newsletter table of contents
295
296 PDF.Index.FontSize=12
297 PDF.Index.LineHeight=16
298 PDF.Index.FontFamily=helvetica
299
300 # how to format the meta-data, i.e. title, author, date
301
302 PDF.Meta.Height=36
303 PDF.Meta.FontSize=14
304 PDF.Meta.FontFamily=helvetica 
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 #
352 # specify your database
353
354 Database.poolMin=1
355 Database.poolMax=10
356 Database.poolResetTime=1.0
357 Database.PoolLog=log/pool.log
358 Database.Limit=20
359 Database.Username=postgres
360 Database.Password=
361 Database.Host=localhost
362 Database.Name=Mir
363
364 #
365 # this sets the adaptor to be used
366
367 Database.Adaptor=mir.storage.DatabaseAdaptorPostgresql
368
369 #
370 # configuration for adaptor postgres
371 # In this example, "Mir" is the dbname
372
373 Adaptor.PostgreSQL.URL=jdbc:postgresql://localhost:5432/Mir
374 Adaptor.PostgreSQL.Driver=org.postgresql.Driver
375
376 #
377 # Servlet / Module configurations
378 #
379
380 # don't change this unless you really know your i18n.
381 # The default encoding charset used in the written html files as well
382 # as the dynamic output html.
383 # also used for the HTML charset meta tag.
384 Mir.DefaultEncoding=UTF8
385
386 # this encoding is used for the HTML charset meta tag.
387 # it must be the html charset equivalent of the Java encoding above
388 # don't change this unless...
389 Mir.DefaultHTMLCharset=UTF-8
390
391
392
393
394 Localizer.OpenSession.article.EditTemplate = editarticle.template
395 Localizer.OpenSession.article.DupeTemplate = dupearticle.template
396 Localizer.OpenSession.article.DoneTemplate = donearticle.template
397 Localizer.OpenSession.article.UnsupportedMediaTemplate = unsupportedmediatype.template
398 Localizer.OpenSession.comment.EditTemplate = editcomment.template
399 Localizer.OpenSession.comment.DupeTemplate = dupecomment.template
400 Localizer.OpenSession.comment.DoneTemplate = donecomment.template
401 Localizer.OpenSession.comment.UnsupportedMediaTemplate = unsupportedmediatype.template
402 Localizer.OpenSession.ErrorTemplate = sessionerror.template
403
404
405
406
407 #
408 # config used for OpenIndy
409
410 ServletModule.OpenIndy.CommentTemplate=comment.template
411 ServletModule.OpenIndy.CommentDoneTemplate=comment_done.template
412 ServletModule.OpenIndy.CommentDupeTemplate=comment_dupe.template
413 ServletModule.OpenIndy.PostingTemplate=posting.template
414 ServletModule.OpenIndy.PostingDoneTemplate=posting_done.template
415 ServletModule.OpenIndy.PostingDupeTemplate=posting_dupe.template
416 ServletModule.OpenIndy.PostingDisabledTemplate=posting_disabled.template
417 ServletModule.OpenIndy.SearchResultsTemplate=search_results.template
418 ServletModule.OpenIndy.PrepareMailTemplate=prepare_mail.template
419 ServletModule.OpenIndy.SentMailTemplate=sent_mail.template
420 ServletModule.OpenIndy.MailableArticleTemplate=email_article.template
421 ServletModule.OpenIndy.EmailIsFrom=mailer@somewhere.org
422 ServletModule.OpenIndy.SMTPServer=localhost
423 ServletModule.OpenIndy.ErrorTemplate=error.template
424 ServletModule.OpenIndy.UserErrorTemplate=usererror.template
425
426
427
428 Mir.TemplateDir=templates/admin/
429
430 Mir.LoginTemplate=login.template
431 Mir.StartTemplate=start_admin.template
432
433 Mir.ErrorTemplate=error.template
434 Mir.UserErrorTemplate=usererror.template
435
436 ServletModule.Themen.ConfirmTemplate=confirm.template
437 ServletModule.Themen.ObjektTemplate=topic.template
438 ServletModule.Themen.ListTemplate=topiclist.template
439
440 ServletModule.LinksImcs.ConfirmTemplate=confirm.template
441 ServletModule.LinksImcs.ObjektTemplate=linksimcs.template
442 ServletModule.LinksImcs.ListTemplate=linksimcslist.template
443
444 ServletModule.Users.ConfirmTemplate=confirm.template
445 ServletModule.Users.ObjektTemplate=user.template
446 ServletModule.Users.ListTemplate=userlist.template
447
448 ServletModule.Images.ConfirmTemplate=confirm.template
449 ServletModule.Images.ObjektTemplate=image.template
450 ServletModule.Images.ListTemplate=imagelist.template
451
452 ServletModule.Audio.ConfirmTemplate=confirm.template
453 ServletModule.Audio.ObjektTemplate=audio.template
454 ServletModule.Audio.ListTemplate=audiolist.template
455
456 ServletModule.Video.ConfirmTemplate=confirm.template
457 ServletModule.Video.ObjektTemplate=video.template
458 ServletModule.Video.ListTemplate=videolist.template
459
460 ServletModule.OtherMedia.ConfirmTemplate=confirm.template
461 ServletModule.OtherMedia.ObjektTemplate=media.template
462 ServletModule.OtherMedia.ListTemplate=medialist.template
463
464 ServletModule.Content.ConfirmTemplate=confirm.template
465 ServletModule.Content.ObjektTemplate=content.template
466 ServletModule.Content.ListTemplate=contentlist.template
467
468 ServletModule.Mediafolder.ConfirmTemplate=confirm.template
469 ServletModule.Mediafolder.ObjektTemplate=mediafolder.template
470 ServletModule.Mediafolder.ListTemplate=mediafolderlist.template
471
472 #
473 # config for ServletModuleComment - browsing/editing/deleting comments
474 ServletModule.Comment.ConfirmTemplate=confirm.template
475 ServletModule.Comment.ObjektTemplate=comment.template
476 ServletModule.Comment.ListTemplate=commentlist.template
477
478 #
479 # config for ServletModuleHidden - lists all hidden articles of one month
480 ServletModule.Hidden.ListTemplate=hiddenlist.template
481
482 #
483 # config for Breaking - browsing/editing/deleting breaking news
484 ServletModule.Breaking.ConfirmTemplate=confirm.template
485 ServletModule.Breaking.ObjektTemplate=breaking.template
486 ServletModule.Breaking.ListTemplate=breakinglist.template
487
488 #
489 # config for Breaking - editing text files
490 ServletModule.FileEdit.ConfirmTemplate=confirm.template
491 ServletModule.FileEdit.ObjektTemplate=fileedit.template
492 ServletModule.FileEdit.ListTemplate=fileeditlist.template
493
494 #
495 # config for messages - browsing/editing/deleting internal messages
496 ServletModule.Messages.ConfirmTemplate=confirm.template
497 ServletModule.Messages.ObjektTemplate=message.template
498 ServletModule.Messages.ListTemplate=messagelist.template
499
500 #
501 # config for languages - browsing/editing/deleting languages
502 ServletModule.Language.ConfirmTemplate=confirm.template
503 ServletModule.Language.ObjektTemplate=language.template
504 ServletModule.Language.ListTemplate=languagelist.template
505
506 #
507 # config for article type
508 ServletModule.ArticleType.ConfirmTemplate=confirm.template
509 ServletModule.ArticleType.EditTemplate=articletype.template
510 ServletModule.ArticleType.ListTemplate=articletypelist.template
511
512 #
513 # config for comment status
514 ServletModule.CommentStatus.ConfirmTemplate=confirm.template
515 ServletModule.CommentStatus.EditTemplate=commentstatus.template
516 ServletModule.CommentStatus.ListTemplate=commentstatuslist.template
517
518 #
519 # producer-related configs below
520 #
521
522 Producer.ExtLinkName=extlink.gif
523 Producer.IntLinkName=intlink.gif
524 Producer.MailLinkName=maillink.gif
525