added support for configuration of max size of a single upload and the maximum number...
[mir.git] / source / 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 DocumentRoot 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 #
34 #
35 # GENERAL SETUP
36 #
37
38 Mir.Version=pre-1.0
39 ClearXslCache=no
40 StandardLanguage=de
41 DirectOpenposting=yes
42
43 #note that you can't make pdf's without making fo's
44 GenerateFO=yes
45 GeneratePDF=yes
46
47 #use rsync to mirror the website to a remote-host
48 Rsync=no
49 Rsync.Script.Path=/var/www/bin/rsync-copy
50
51 # the maximum allowed size of an uploaded media file in KB.
52 MaxMediaUploadSize=20000
53
54 # the maximum number of allowed media items to upload at once.
55 ServletModule.OpenIndy.MaxMediaUploadItems=20
56
57 #
58 #
59 # STATIC SITE CONFIG
60 #
61
62 # the url of the static site
63 Producer.ProductionHost=http://indy.code-fu.de
64
65 # The above URL points to the following directory, in which
66 # the generated HTML pages will be stored
67 Producer.StorageRoot=/pub/Dokumente/Indymedia/de-tech/Mir/produced
68
69
70
71
72 #
73 #
74 # DYNAMIC SITE CONFIG
75 #
76
77 # the url of the openposting-servlet
78 Producer.OpenAction=http://indy.code-fu.de/Mir/servlet/OpenMir
79
80
81 # fill this variable if the pages should not be saved directly
82 # in the Producer.StorageRoot. then the pages will be saved
83 # in this subdirectory
84 Producer.DocRoot=
85
86
87 # this is the name of the subdirectory where the image-dir
88 # will be linked to.
89 Producer.ImageRoot=/img
90
91
92 # the url of the video-server
93 Producer.Video.Host=http://indy.code-fu.de/video
94
95 # the url of the audio-server
96 Producer.Audio.Host=http://indy.code-fu.de/audio
97
98 # the url of the image-server
99 Producer.Image.Host=http://indy.code-fu.de/images
100
101 # the url of the media-server
102 Producer.Media.Host=http://indy.code-fu.de/media
103
104 # the url of the real-media-server
105 Producer.RealMedia.Host=rtsp://some.media.server/somedir/
106
107
108 # image specific storage directories
109 # absolute directory, where the images are saved
110 Producer.Image.Path=/pub/Dokumente/Indymedia/de-tech/Mir/produced/images/
111
112 # media specific storage directories
113 # absolute directory, where the media files are saved
114 Producer.Media.Path=/pub/Dokumente/Indymedia/de-tech/Mir/produced/media
115
116 # absolute directory, where the realmedia data files(ra and rm) are saved
117 # the ram files which point to the RealMedia.Host get saved in the regular Media dir
118 # this should make rsyncing to a separate streaming server much easier
119 Producer.RealMedia.Path=/pub/Dokumente/rtsp
120
121 # relativ directory, where the thumbnails will be saved
122 Producer.Image.IconPath=/icon
123
124 # Tiny Icons for the media types on the newswire summary.
125 # (right hand side of start page)
126 Producer.Icon.TinyImage=photo_small.gif
127 Producer.Icon.TinyAudio=audio_small.gif
128 Producer.Icon.TinyVideo=video_small.gif
129 Producer.Icon.TinyText=text_small.gif
130
131 #Medium sized icons used at various places
132 Producer.Icon.BigImage=photo_big.gif
133 Producer.Icon.BigAudio=audio_big.gif
134 Producer.Icon.BigVideo=video_big.gif
135 Producer.Icon.BigText=text_big.gif
136
137
138
139 #
140 # edit with caution below this line
141 ######################################################################
142
143 #
144 #
145 # DATABASE SETUP
146 #
147
148 #
149 # specify your database
150
151 Database.poolMin=1
152 Database.poolMax=10
153 Database.poolResetTime=1.0
154 Database.PoolLog=log/pool.log
155 Database.Limit=20
156 Database.Username=postgres
157 Database.Password=
158 Database.Host=localhost
159 Database.Name=Mir
160
161 #
162 # this sets the adaptor to be used
163
164 Database.Adaptor=mir.storage.DatabaseAdaptorPostgresql
165 Database.Logfile=log/dbentity.log
166
167 #
168 # configuration for adaptor mysql
169 # In this example, "Mir" is the dbname
170
171 Adaptor.MySQL.URL=jdbc:mysql://localhost:3306/Mir
172 Adaptor.MySQL.Driver=org.gjt.mm.mysql.Driver
173
174 #
175 # configuration for adaptor postgres
176 # In this example, "Mir" is the dbname
177
178 Adaptor.PostgreSQL.URL=jdbc:postgresql://localhost:5432/Mir
179 Adaptor.PostgreSQL.Driver=org.postgresql.Driver
180
181 #
182 # should be explained .)
183 #
184
185 # how many articles should be shown on a list-page
186 Lists.Max.Items=10
187
188 HTMLTemplateProcessor.Logfile=log/htmlprocess.log
189 HTMLTemplateProcessor.Dir=templates
190
191 ServletModule.Producer.Logfile=log/producer.log
192 Entity.Logfile=log/dbentity.log
193
194 #
195 # Servlet / Module configurations
196 #
197
198 Mir.Logfile=log/mir.log
199 Mir.ErrorTemplate=error.template
200 Mir.UserErrorTemplate=usererror.template
201 Mir.LoginTemplate=admin/login.template
202
203 ServletModule.Schwerpunkt.ConfirmTemplate=admin/confirm.template
204 ServletModule.Schwerpunkt.ObjektTemplate=admin/feature.template
205 ServletModule.Schwerpunkt.ListTemplate=admin/featurelist.template
206 ServletModule.Schwerpunkt.Logfile=log/mir.log
207 Module.Schwerpunkt.Logfile=log/mir.log
208
209 ServletModule.Feature.ConfirmTemplate=admin/confirm.template
210 ServletModule.Feature.ObjektTemplate=admin/schwerpunkt.template
211 ServletModule.Feature.ListTemplate=admin/schwerpunktlist.template
212 ServletModule.Feature.Logfile=log/mir.log
213 Module.Feature.Logfile=log/mir.log
214
215 ServletModule.Themen.ConfirmTemplate=admin/confirm.template
216 ServletModule.Themen.ObjektTemplate=admin/topic.template
217 ServletModule.Themen.ListTemplate=admin/topiclist.template
218 ServletModule.Themen.Logfile=log/mir.log
219 Module.Themen.Logfile=log/mir.log
220
221 ServletModule.LinksImcs.ConfirmTemplate=admin/confirm.template
222 ServletModule.LinksImcs.ObjektTemplate=admin/linksimcs.template
223 ServletModule.LinksImcs.ListTemplate=admin/linksimcslist.template
224 ServletModule.LinksImcs.Logfile=log/mir.log
225 Module.LinksImcs.Logfile=log/mir.log
226
227 ServletModule.Users.ConfirmTemplate=admin/confirm.template
228 ServletModule.Users.ObjektTemplate=admin/user.template
229 ServletModule.Users.ListTemplate=admin/userlist.template
230 ServletModule.Users.Logfile=log/mir.log
231 Module.Users.Logfile=log/mir.log
232
233 ServletModule.Images.ConfirmTemplate=admin/confirm.template
234 ServletModule.Images.ObjektTemplate=admin/image.template
235 ServletModule.Images.ListTemplate=admin/imagelist.template
236 ServletModule.Images.Logfile=log/mir.log
237 Module.Images.Logfile=log/mir.log
238
239 Module.UploadedMedia.Logfile=log/mir.log
240
241 ServletModule.Audio.ConfirmTemplate=admin/confirm.template
242 ServletModule.Audio.ObjektTemplate=admin/audio.template
243 ServletModule.Audio.ListTemplate=admin/audiolist.template
244 ServletModule.Audio.Logfile=log/mir.log
245
246 ServletModule.Video.ConfirmTemplate=admin/confirm.template
247 ServletModule.Video.ObjektTemplate=admin/video.template
248 ServletModule.Video.ListTemplate=admin/videolist.template
249 ServletModule.Video.Logfile=log/mir.log
250
251 ServletModule.OtherMedia.ConfirmTemplate=admin/confirm.template
252 ServletModule.OtherMedia.ObjektTemplate=admin/media.template
253 ServletModule.OtherMedia.ListTemplate=admin/medialist.template
254 ServletModule.OtherMedia.Logfile=log/mir.log
255
256 ServletModule.Content.ConfirmTemplate=admin/confirm.template
257 ServletModule.Content.ObjektTemplate=admin/content.template
258 ServletModule.Content.ListTemplate=admin/contentlist.template
259 ServletModule.Content.Logfile=log/mir.log
260 Module.Content.Logfile=log/mir.log
261
262 ServletModule.Mediafolder.ConfirmTemplate=admin/confirm.template
263 ServletModule.Mediafolder.ObjektTemplate=admin/mediafolder.template
264 ServletModule.Mediafolder.ListTemplate=admin/mediafolderlist.template
265 ServletModule.Mediafolder.Logfile=log/mir.log
266 Module.Mediafolder.Logfile=log/mir.log
267
268 #
269 # config used for OpenIndy
270 ServletModule.OpenIndy.CommentTemplate=open/comment.template
271 ServletModule.OpenIndy.CommentDoneTemplate=open/comment_done.template
272 ServletModule.OpenIndy.CommentDupeTemplate=open/comment_dupe.template
273 ServletModule.OpenIndy.PostingTemplate=open/posting.template
274 ServletModule.OpenIndy.PostingDoneTemplate=open/posting_done.template
275 ServletModule.OpenIndy.PostingDupeTemplate=open/posting_dupe.template
276 ServletModule.OpenIndy.Logfile=log/openindy.log
277
278 #
279 # config for ServletModuleComment - browsing/editing/deleting comments
280 Module.Comment.Logfile=log/comment.log
281 ServletModule.Comment.Logfile=log/comment.log
282 ServletModule.Comment.ConfirmTemplate=admin/confirm.template
283 ServletModule.Comment.ObjektTemplate=admin/comment.template
284 ServletModule.Comment.ListTemplate=admin/commentlist.template
285
286 #
287 # config for Breaking - browsing/editing/deleting breaking news
288 Module.Breaking.Logfile=log/breaking.log
289 ServletModule.Breaking.Logfile=log/comment.log
290 ServletModule.Breaking.ConfirmTemplate=admin/confirm.template
291 ServletModule.Breaking.ObjektTemplate=admin/breaking.template
292 ServletModule.Breaking.ListTemplate=admin/breakinglist.template
293
294
295 #
296 # config for messages - browsing/editing/deleting internal messages
297 Module.Messages.Logfile=log/message.log
298 ServletModule.Messages.Logfile=log/comment.log
299 ServletModule.Messages.ConfirmTemplate=admin/confirm.template
300 ServletModule.Messages.ObjektTemplate=admin/message.template
301 ServletModule.Messages.ListTemplate=admin/messagelist.template
302
303 #
304 # config for languages - browsing/editing/deleting languages
305 Module.Language.Logfile=log/message.log
306 ServletModule.Language.Logfile=log/mir.log
307 ServletModule.Language.ConfirmTemplate=admin/confirm.template
308 ServletModule.Language.ObjektTemplate=admin/language.template
309 ServletModule.Language.ListTemplate=admin/languagelist.template
310
311
312 #
313 # producer-related configs below
314 #
315
316 Producer.ExtLinkName=extlink.gif
317 Producer.IntLinkName=intlink.gif
318 Producer.MailLinkName=maillink.gif
319 Producer.Logfile=log/producer.log
320
321 Producer.Navigation.Template=producer/navigation.template
322
323 Producer.Content.Template=producer/content.template
324 Producer.Content.Batchsize=10
325
326 Producer.PrintableContent.Template=producer/printablecontent.template
327 Producer.PrintableContent.html2foStyleSheetName=producer/html2fo.xsl
328
329 Producer.Startseite.Template=producer/startseite.template
330 Producer.Startseite.Entries=7
331 Producer.Startseite.Pages=10
332 Producer.Startseite.Termine=5
333
334 Producer.Themen.Template=producer/themen.template
335 Producer.Themen.Entries=7
336 Producer.Themen.Pages=3
337
338 Producer.Schwerpunkte.Template=producer/schwerpunkte.template
339 Producer.Schwerpunkte.Entries=7
340 Producer.Schwerpunkte.Pages=3
341
342 Producer.Overview.MonthTemplate=producer/ov_month.template
343 Producer.Overview.YearTemplate=producer/ov_year.template
344
345 Producer.List.Template=producer/list.template
346 Producer.TopicList.Template=producer/topiclist.template
347 Producer.OpenPosting.Template=producer/openposting.template
348 Producer.FeatureList.Template=producer/featurelist.template
349
350 Producer.StartPage.Template=producer/startpage.template
351 Producer.StartPage.Items=10
352 Producer.StartPage.Newswire=30
353
354
355 # todo: do we need those?
356
357 Xsl.Content=producer/content.xsl
358 Xsl.Fo.Content=producer/frontpage_fo.xsl
359 Xsl.StartPage=producer/index.xsl
360 Xsl.TopicList=producer/topic.xsl
361 Xsl.OpenList=producer/open.xsl
362 Xsl.Wap=producer/wml2.xsl