62fe099cb4a977820c358570687f8561e7968242
[mir.git] / etc / config.properties-dist
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 StandardLanguage=de
48 DirectOpenposting=yes
49
50 #where to put the lucene index
51 IndexPath=/tmp/index
52
53 TempDir=/tmp
54
55 Log.LogClass = mir.log.log4j.LoggerImpl
56 Log.log4j.ConfigurationFile = etc/log4j.properties
57 Log.Home = log
58
59 Mir.Localizer=mircoders.localizer.basic.MirBasicLocalizer
60 Mir.Localizer.Logfile=log/localizer.log
61
62 # The location of the producer specifiations
63 Mir.Localizer.ProducerConfigFile=etc/producer/producers.xml
64
65 # the templates
66 Mir.Localizer.Producer.GeneratorLibrary= default=freemarker(etc/producer/)
67 Mir.Localizer.Admin.GeneratorLibrary= default=freemarker(templates/admin/)
68 Mir.Localizer.OpenPosting.GeneratorLibrary= default=freemarker(etc/open/)
69
70 # How should the custom operations (hide etc) in article and comment lists
71 # be presented?
72 # 0 = links, 1 = checkboxes, 2 = a listbox
73 Mir.Localizer.Admin.ListOperationsFlavor=1
74
75 # Which producers need to be called after an article (resp. a comment) is posted
76 Mir.Localizer.OpenPosting.ContentProducers= media.new;articles.changed;startpage.generate;synchronization.run
77 Mir.Localizer.OpenPosting.CommentProducers= articles.changed;synchronization.run
78
79 # Which producers need to be called after the "produce all new" link is clicked from admin
80 Mir.Localizer.Producer.AllNewProducers= media.new;articles.changed;startpage.run;synchronization.run
81
82
83 #note that you can't make pdf's without making fo's
84 GenerateFO=yes
85 GeneratePDF=yes
86
87 #on-time-password-protection
88 PasswdProtection=no
89
90 #use rsync to mirror the website to a remote-host
91 Rsync=no
92 Rsync.Script.Path=/var/www/bin/rsync-copy
93
94 # the maximum allowed size of an uploaded media file in KB.
95 MaxMediaUploadSize=20000
96
97 # the maximum number of allowed media items to upload at once.
98 ServletModule.OpenIndy.MaxMediaUploadItems=20
99
100 # the default number of media items to upload at once
101 ServletModule.OpenIndy.DefaultMediaUploadItems=1
102
103
104 #
105 #
106 # STATIC SITE CONFIG
107 #
108
109 # the url of the static site
110 Producer.ProductionHost=http://indy.code-fu.de
111
112 # Produrce.StorageRoot is the directory, in which
113 # the generated HTML pages will be stored
114 Producer.StorageRoot=/pub/Dokumente/Indymedia/de-tech/Mir/produced
115
116 # for FileEdit module
117 #
118 # where do we find the files? absolute path
119 ServletModule.FileEdit.FileDirectory=/pub/Dokumente/Indymedia/de-tech/Mir/produced
120 ServletModule.FileEdit.ExtFilter=inc
121
122 #
123 #
124 # DYNAMIC SITE CONFIG
125 #
126
127 # the url of the openposting-servlet
128 Producer.OpenAction=http://indy.code-fu.de/Mir/servlet/OpenMir
129
130 # use this property if the pages are not produced under the docRoot
131 # of the webserver. all links in the produced pages are prepended
132 # with Producer.DocRoot
133 Producer.DocRoot=
134
135 Producer.ActionServlet=/servlet/Mir
136
137 # this is the name of the subdirectory where the image-dir
138 # will be linked to.
139 Producer.ImageRoot=/img
140
141
142 # the url of the video-server
143 Producer.Video.Host=http://indy.code-fu.de/video
144
145 # the url of the audio-server
146 Producer.Audio.Host=http://indy.code-fu.de/audio
147
148 # the url of the image-server
149 Producer.Image.Host=http://indy.code-fu.de/images
150
151 # the url of the media-server
152 Producer.Media.Host=http://indy.code-fu.de/media
153
154 # the url of the real-media-server
155 Producer.RealMedia.Host=rtsp://some.media.server/somedir/
156
157
158 # image specific storage directories
159 # absolute directory, where the images are saved
160 Producer.Image.Path=/pub/Dokumente/Indymedia/de-tech/Mir/produced/images/
161
162 # media specific storage directories
163 # absolute directory, where the media files are saved
164 Producer.Media.Path=/pub/Dokumente/Indymedia/de-tech/Mir/produced/media
165
166 # absolute directory, where the realmedia data files(ra and rm) are saved
167 # the ram files which point to the RealMedia.Host get saved in the regular Media dir
168 # this should make rsyncing to a separate streaming server much easier
169 Producer.RealMedia.Path=/pub/Dokumente/rtsp
170
171 # relativ directory, where the thumbnails will be saved
172 Producer.Image.IconPath=/icon
173
174 # Tiny Icons for the media types on the newswire summary.
175 # (right hand side of start page)
176 Producer.Icon.TinyImage=photo_small.gif
177 Producer.Icon.TinyAudio=audio_small.gif
178 Producer.Icon.TinyVideo=video_small.gif
179 Producer.Icon.TinyText=text_small.gif
180
181 #Medium sized icons used at various places
182 Producer.Icon.BigImage=photo_big.gif
183 Producer.Icon.BigAudio=audio_big.gif
184 Producer.Icon.BigVideo=video_big.gif
185 Producer.Icon.BigText=text_big.gif
186
187
188
189 #
190 # edit with caution below this line
191 ######################################################################
192
193 #
194 #
195 # DATABASE SETUP
196 #
197
198 #
199 # specify your database
200
201 Database.poolMin=1
202 Database.poolMax=10
203 Database.poolResetTime=1.0
204 Database.PoolLog=log/pool.log
205 Database.Limit=20
206 Database.Username=postgres
207 Database.Password=
208 Database.Host=localhost
209 Database.Name=Mir
210
211 #
212 # this sets the adaptor to be used
213
214 Database.Adaptor=mir.storage.DatabaseAdaptorPostgresql
215 Database.Logfile=log/dbentity.log
216
217 #
218 # configuration for adaptor postgres
219 # In this example, "Mir" is the dbname
220
221 Adaptor.PostgreSQL.URL=jdbc:postgresql://localhost:5432/Mir
222 Adaptor.PostgreSQL.Driver=org.postgresql.Driver
223
224 #
225 # should be explained .)
226 #
227
228 # how many articles should be shown on a list-page
229 Lists.Max.Items=10
230
231 HTMLTemplateProcessor.Logfile=log/htmlprocess.log
232 HTMLTemplateProcessor.Dir=
233
234 Entity.Logfile=log/dbentity.log
235
236 #
237 # Servlet / Module configurations
238 #
239
240 # don't change this unless you really know your i18n.
241 # The default encoding charset used in the written html files as well
242 # as the dynamic output html.
243 # also used for the HTML charset meta tag.
244 Mir.DefaultEncoding=ISO8859_1
245 Mir.Logfile=log/mir.log
246 Mir.ErrorTemplate=templates/error.template
247 Mir.UserErrorTemplate=templates/usererror.template
248 Mir.LoginTemplate=templates/admin/login.template
249 OpenMir.Logfile=log/OpenMir.log
250
251 ServletModule.Schwerpunkt.ConfirmTemplate=templates/admin/confirm.template
252 ServletModule.Schwerpunkt.ObjektTemplate=templates/admin/feature.template
253 ServletModule.Schwerpunkt.ListTemplate=templates/admin/featurelist.template
254
255 ServletModule.Feature.ConfirmTemplate=templates/admin/confirm.template
256 ServletModule.Feature.ObjektTemplate=templates/admin/schwerpunkt.template
257 ServletModule.Feature.ListTemplate=templates/admin/schwerpunktlist.template
258
259 ServletModule.Themen.ConfirmTemplate=templates/admin/confirm.template
260 ServletModule.Themen.ObjektTemplate=templates/admin/topic.template
261 ServletModule.Themen.ListTemplate=templates/admin/topiclist.template
262
263 ServletModule.LinksImcs.ConfirmTemplate=templates/admin/confirm.template
264 ServletModule.LinksImcs.ObjektTemplate=templates/admin/linksimcs.template
265 ServletModule.LinksImcs.ListTemplate=templates/admin/linksimcslist.template
266
267 ServletModule.Users.ConfirmTemplate=templates/admin/confirm.template
268 ServletModule.Users.ObjektTemplate=templates/admin/user.template
269 ServletModule.Users.ListTemplate=templates/admin/userlist.template
270
271 ServletModule.Images.ConfirmTemplate=templates/admin/confirm.template
272 ServletModule.Images.ObjektTemplate=templates/admin/image.template
273 ServletModule.Images.ListTemplate=templates/admin/imagelist.template
274
275 Module.UploadedMedia.Logfile=log/mir.log
276
277 ServletModule.Audio.ConfirmTemplate=templates/admin/confirm.template
278 ServletModule.Audio.ObjektTemplate=templates/admin/audio.template
279 ServletModule.Audio.ListTemplate=templates/admin/audiolist.template
280
281 ServletModule.Video.ConfirmTemplate=templates/admin/confirm.template
282 ServletModule.Video.ObjektTemplate=templates/admin/video.template
283 ServletModule.Video.ListTemplate=templates/admin/videolist.template
284
285 ServletModule.OtherMedia.ConfirmTemplate=templates/admin/confirm.template
286 ServletModule.OtherMedia.ObjektTemplate=templates/admin/media.template
287 ServletModule.OtherMedia.ListTemplate=templates/admin/medialist.template
288
289 ServletModule.Content.ConfirmTemplate=templates/admin/confirm.template
290 ServletModule.Content.ObjektTemplate=templates/admin/content.template
291 ServletModule.Content.ListTemplate=templates/admin/contentlist.template
292
293 ServletModule.Mediafolder.ConfirmTemplate=templates/admin/confirm.template
294 ServletModule.Mediafolder.ObjektTemplate=templates/admin/mediafolder.template
295 ServletModule.Mediafolder.ListTemplate=templates/admin/mediafolderlist.template
296
297 #
298 # config used for OpenIndy
299 ServletModule.OpenIndy.CommentTemplate=etc/open/comment.template
300 ServletModule.OpenIndy.CommentDoneTemplate=etc/open/comment_done.template
301 ServletModule.OpenIndy.CommentDupeTemplate=etc/open/comment_dupe.template
302 ServletModule.OpenIndy.PostingTemplate=etc/open/posting.template
303 ServletModule.OpenIndy.PostingDoneTemplate=etc/open/posting_done.template
304 ServletModule.OpenIndy.PostingDupeTemplate=etc/open/posting_dupe.template
305 ServletModule.OpenIndy.SearchResultsTemplate=etc/open/search_results.template
306
307 #
308 # config for ServletModuleComment - browsing/editing/deleting comments
309 ServletModule.Comment.ConfirmTemplate=templates/admin/confirm.template
310 ServletModule.Comment.ObjektTemplate=templates/admin/comment.template
311 ServletModule.Comment.ListTemplate=templates/admin/commentlist.template
312
313 #
314 # config for ServletModuleHidden - lists all hidden articles of one month
315 ServletModule.Hidden.ListTemplate=templates/admin/hiddenlist.template
316
317 #
318 # config for Breaking - browsing/editing/deleting breaking news
319 ServletModule.Breaking.ConfirmTemplate=templates/admin/confirm.template
320 ServletModule.Breaking.ObjektTemplate=templates/admin/breaking.template
321 ServletModule.Breaking.ListTemplate=templates/admin/breakinglist.template
322
323 #
324 # config for Breaking - editing text files
325 ServletModule.FileEdit.ConfirmTemplate=templates/admin/confirm.template
326 ServletModule.FileEdit.ObjektTemplate=templates/admin/fileedit.template
327 ServletModule.FileEdit.ListTemplate=templates/admin/fileeditlist.template
328
329 #
330 # config for messages - browsing/editing/deleting internal messages
331 ServletModule.Messages.ConfirmTemplate=templates/admin/confirm.template
332 ServletModule.Messages.ObjektTemplate=templates/admin/message.template
333 ServletModule.Messages.ListTemplate=templates/admin/messagelist.template
334
335 #
336 # config for languages - browsing/editing/deleting languages
337 ServletModule.Language.ConfirmTemplate=templates/admin/confirm.template
338 ServletModule.Language.ObjektTemplate=templates/admin/language.template
339 ServletModule.Language.ListTemplate=templates/admin/languagelist.template
340
341 #
342 # config for article type
343 ServletModule.ArticleType.ConfirmTemplate=templates/admin/confirm.template
344 ServletModule.ArticleType.EditTemplate=templates/admin/articletype.template
345 ServletModule.ArticleType.ListTemplate=templates/admin/articletypelist.template
346
347 #
348 # config for comment status
349 ServletModule.CommentStatus.ConfirmTemplate=templates/admin/confirm.template
350 ServletModule.CommentStatus.EditTemplate=templates/admin/commentstatus.template
351 ServletModule.CommentStatus.ListTemplate=templates/admin/commentstatuslist.template
352
353 #
354 # producer-related configs below
355 #
356
357 Producer.ExtLinkName=extlink.gif
358 Producer.IntLinkName=intlink.gif
359 Producer.MailLinkName=maillink.gif
360 Producer.Logfile=log/producer.log
361
362 Producer.Content.Template=etc/producer/content.template
363 Producer.Content.Batchsize=10