added new config-lines for CommentList.ArticleLink ContentList.ArticleLink
[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
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 # There are more configuration values located in the default.properties file
26 # located in source/. If necessary these values can be overridden in this file.
27 #
28 # The setup uses the following assumptions:
29 # The URL to reach the site is http://indy.code-fu.de
30 # The StorageRoot of this URL is /pub/Dokumente/Indymedia/de-tech/Mir
31 # All data is located below this directory, including the servlets.
32
33
34 #
35 #
36 # GENERAL SETUP
37 #
38
39 ### mir/imc information
40 Mir.Name=mir.indymedia.org
41 Mir.Shortname=mir
42 Mir.Contact-email.address=mir-coders@lists.indymedia.org
43 Mir.Contact-email.name=mir-coders mailinglist
44 Mir.Tech-email.address=mir-coders@lists.indymedia.org
45 Mir.Tech-email.name=mir-coders mailinglist
46 Mir.Public-email.address=mir-coders@lists.indymedia.org
47 Mir.Public-email.name=mir-coders mailinglist
48
49 Mir.Version=1.1beta
50 StandardLanguage=de
51 DirectOpenposting=yes
52
53 #where to put the lucene index
54 IndexPath=/tmp/index
55
56 # temp-dir used for media-uploads
57 TempDir=/tmp
58
59 Log.LogClass = mir.log.log4j.LoggerImpl
60 Log.log4j.ConfigurationFile = etc/log4j.properties
61 Log.Home = log
62
63 Mir.Localizer=mircoders.localizer.basic.MirBasicLocalizer
64 Mir.Localizer.Logfile=log/localizer.log
65
66 # The location of the producer specifiations
67 Mir.Localizer.ProducerConfigFile=etc/producer/producers.xml
68
69 # Settings for the admin login:
70 # If the default language is left empty, it will set the accept-language of
71 # the client browser as the default.
72 Mir.Login.DefaultLanguage=en
73 Mir.Login.Languages=en;nl;de;qu;tr;ay;es;eu
74
75
76 # the templates
77 Mir.Localizer.Producer.GeneratorLibrary= default=freemarker(etc/producer/)
78 Mir.Localizer.Admin.GeneratorLibrary= default=freemarker(templates/admin/)
79 Mir.Localizer.OpenPosting.GeneratorLibrary= default=freemarker(etc/open/)
80
81 # How should the custom operations (hide etc) in article and comment lists
82 # be presented?
83 # 0 = links, 1 = checkboxes, 2 = a listbox
84 Mir.Localizer.Admin.ListOperationsFlavor=1
85
86 # How should the topics be presented on the article edit page?
87 # 0 = in a multiselect list box, 1 = checkboxes
88 Mir.Localizer.Admin.TopicListFlavor=1
89
90 # For the checkboxes flavour, how many columns should there be?
91 Mir.Localizer.Admin.TopicListColumns=3
92
93 # Article Preview Link URL (Link to produced articles from within admin) 
94 ContentList.ArticleLink=http://production.indy.code-foo.org/en/${date.formatted.yyyy}/${date.formatted.MM}/${id}.shtml
95 CommentList.ArticleLink=http://production.indy.code-foo.org/en/${co_content.date.formatted.yyyy}/${to_content.date.formatted.MM}/${to_content.id}.shtml
96
97
98 # In which order should the topic appear?
99 Mir.Localizer.Admin.TopicListOrder=title
100
101 # Which producers need to be called after an article (resp. a comment) is posted
102 Mir.Localizer.OpenPosting.ContentProducers= media.new;articles.changed;startpage.generate;synchronization.run
103 Mir.Localizer.OpenPosting.CommentProducers= articles.changed;synchronization.run
104
105 # Which producers need to be called after the "produce all new" link is clicked from admin
106 Mir.Localizer.Producer.AllNewProducers= media.new;articles.changed;startpage.run;synchronization.run
107
108
109 #note that you can't make pdf's without making fo's
110 #this is actually now set in producers.xml
111 #but these summarize what is said in there for the benefit of OpenMir 
112 GenerateFO=yes
113 GeneratePDF=yes
114
115 #use rsync to mirror the website to a remote-host
116 Rsync=no
117 Rsync.Script.Path=/var/www/bin/rsync-copy
118
119 # the maximum allowed size of an uploaded media file in KB.
120 MaxMediaUploadSize=20000
121
122 # the maximum number of allowed media items to upload at once.
123 ServletModule.OpenIndy.MaxMediaUploadItems=20
124
125 # the default number of media items to upload at once
126 ServletModule.OpenIndy.DefaultMediaUploadItems=1
127
128
129 #
130 #
131 # STATIC SITE CONFIG
132 #
133
134 # the url of the static site
135 Producer.ProductionHost=http://indy.code-fu.de
136
137 # Produrce.StorageRoot is the directory, in which
138 # the generated HTML pages will be stored
139 Producer.StorageRoot=/pub/Dokumente/Indymedia/de-tech/Mir/produced
140
141 # for FileEdit module
142 #
143 # where do we find the files? absolute path
144 ServletModule.FileEdit.FileDirectory=/pub/Dokumente/Indymedia/de-tech/Mir/produced
145 ServletModule.FileEdit.ExtFilter=.*\.inc$
146 ServletModule.FileEdit.Recursive=1
147
148 #
149 #
150 # DYNAMIC SITE CONFIG
151 #
152
153 # the url of the openposting-servlet
154 Producer.OpenAction=http://indy.code-fu.de/Mir/servlet/OpenMir
155
156 # use this property if the pages are not produced under the docRoot
157 # of the webserver. all links in the produced pages are prepended
158 # with Producer.DocRoot
159 Producer.DocRoot=
160
161 Producer.ActionServlet=/servlet/Mir
162
163 # this is the name of the subdirectory where the image-dir
164 # will be linked to.
165 Producer.ImageRoot=/img
166
167
168 # the url of the video-server
169 Producer.Video.Host=http://indy.code-fu.de/video
170
171 # the url of the audio-server
172 Producer.Audio.Host=http://indy.code-fu.de/audio
173
174 # the url of the image-server
175 Producer.Image.Host=http://indy.code-fu.de/images
176
177 # the url of the media-server
178 Producer.Media.Host=http://indy.code-fu.de/media
179
180 # the url of the real-media-server
181 Producer.RealMedia.Host=rtsp://some.media.server/somedir/
182
183
184 # image specific storage directories
185 # absolute directory, where the images are saved
186 Producer.Image.Path=/pub/Dokumente/Indymedia/de-tech/Mir/produced/images/
187
188 # media specific storage directories
189 # absolute directory, where the media files are saved
190 Producer.Media.Path=/pub/Dokumente/Indymedia/de-tech/Mir/produced/media
191
192 # absolute directory, where the realmedia data files(ra and rm) are saved
193 # the ram files which point to the RealMedia.Host get saved in the regular Media dir
194 # this should make rsyncing to a separate streaming server much easier
195 Producer.RealMedia.Path=/pub/Dokumente/rtsp
196
197 # relativ directory, where the thumbnails will be saved
198 Producer.Image.IconPath=/icon
199
200 # Tiny Icons for the media types on the newswire summary.
201 # (right hand side of start page)
202 Producer.Icon.TinyImage=photo_small.gif
203 Producer.Icon.TinyAudio=audio_small.gif
204 Producer.Icon.TinyVideo=video_small.gif
205 Producer.Icon.TinyText=text_small.gif
206
207 #Medium sized icons used at various places
208 Producer.Icon.BigImage=photo_big.gif
209 Producer.Icon.BigAudio=audio_big.gif
210 Producer.Icon.BigVideo=video_big.gif
211 Producer.Icon.BigText=text_big.gif
212
213 #Icons used for links
214 Producer.ExtLinkName=extlink.gif
215 Producer.IntLinkName=intlink.gif
216 Producer.MailLinkName=maillink.gif
217
218 #the style sheet used to turn html into xsl:fo
219 #this is not currently in use, so don't worry about it
220 Producer.HTML2FOStyleSheet=/some/dir/mir/etc/producer/html2fo.xsl 
221
222 # the following lines are used to construct PDFs on the fly from one or more articles
223 # for the moment, if you want to change anything else about your pdfs, you 
224 # will have to learn some java!
225 #
226 # keep in mind that there may not be enough room for all the text you enter as the 
227 # value of one these options, if text doesn't appear, the only easy thing to do is 
228 # use less text!
229 #
230
231 # a single line of big text which will appear at the top of the first page of all generated pdfs
232
233 PDF.Title=INDYMEDIA SOMEWHERE
234
235 # about two lines of small text which will appear at the bottom of every page 
236
237 PDF.Footer=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.
238  
239 #
240 # the size paper your target audience will likely have in their printers.  pick one of A4 or LETTER
241 #
242
243 PDF.PageSize=A4
244
245
246
247
248 #
249 # edit with caution below this line
250 ######################################################################
251
252 #
253 #
254 # DATABASE SETUP
255 #
256
257 #
258 # specify your database
259
260 Database.poolMin=1
261 Database.poolMax=10
262 Database.poolResetTime=1.0
263 Database.PoolLog=log/pool.log
264 Database.Limit=20
265 Database.Username=postgres
266 Database.Password=
267 Database.Host=localhost
268 Database.Name=Mir
269
270 #
271 # this sets the adaptor to be used
272
273 Database.Adaptor=mir.storage.DatabaseAdaptorPostgresql
274 Database.Logfile=log/dbentity.log
275
276 #
277 # configuration for adaptor postgres
278 # In this example, "Mir" is the dbname
279
280 Adaptor.PostgreSQL.URL=jdbc:postgresql://localhost:5432/Mir
281 Adaptor.PostgreSQL.Driver=org.postgresql.Driver
282
283 # how many articles should be shown on a list-page
284 Lists.Max.Items=10
285
286 #
287 # Servlet / Module configurations
288 #
289
290 # don't change this unless you really know your i18n.
291 # The default encoding charset used in the written html files as well
292 # as the dynamic output html.
293 # also used for the HTML charset meta tag.
294 Mir.DefaultEncoding=UTF8