age old typo fixed
[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 DirectOpenposting=yes
50
51 # Default timezone to display times in in admin, producers
52 #
53 # Leave empty to use the system's default
54 Mir.DefaultTimezone=
55
56 # Default date/time format
57 Mir.DefaultDateTimeFormat = yyyy-MM-dd HH:mm
58
59 #where to put the lucene index
60 IndexPath=/tmp/index
61
62 # temp-dir used for media-uploads
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 Mir.Login.Languages=en;de;fr;nl;es;pt;eu;sv;tr;zh;gz
79
80 # For missing values, the FallbackLanguage is used as default
81 Mir.Admin.FallbackLanguage=en
82
83 # the templates
84 Mir.Localizer.Producer.GeneratorLibrary= default=freemarker(etc/producer/)
85 Mir.Localizer.Admin.GeneratorLibrary= default=freemarker(templates/admin/)
86 Mir.Localizer.OpenPosting.GeneratorLibrary= default=freemarker(etc/open/)
87
88 # How should the custom operations (hide etc) in article and comment lists
89 # be presented?
90 # 0 = links, 1 = checkboxes, 2 = a listbox
91 Mir.Localizer.Admin.ListOperationsFlavor=1
92
93 # How should the topics be presented on the article edit page?
94 # 0 = in a multiselect list box, 1 = checkboxes
95 Mir.Localizer.Admin.TopicListFlavor=1
96
97 # For the checkboxes flavour, how many columns should there be?
98 Mir.Localizer.Admin.TopicListColumns=3
99
100 # In which order should the topic appear?
101 Mir.Localizer.Admin.TopicListOrder=title
102
103 # enable deletion of comments/articles?
104 Mir.Localizer.Admin.AllowDeleteComment=1
105 Mir.Localizer.Admin.AllowDeleteArticle=1
106
107
108 # Article Preview Link URL (Link to produced articles from within admin) 
109 ContentList.ArticleLink=http://production.indy.code-foo.org/en/${date.formatted.yyyy}/${date.formatted.MM}/${id}.shtml
110 CommentList.ArticleLink=http://production.indy.code-foo.org/en/${co_content.date.formatted.yyyy}/${to_content.date.formatted.MM}/${to_content.id}.shtml
111
112
113 # Which producers need to be called after an article (resp. a comment) is posted
114 Mir.Localizer.OpenPosting.ContentProducers= media.new;articles.changed;startpage.generate;synchronization.run
115 Mir.Localizer.OpenPosting.CommentProducers= articles.changed;synchronization.run
116
117 # Which producers need to be called after the "produce all new" link is clicked from admin
118 Mir.Localizer.Producer.AllNewProducers= media.new;articles.changed;startpage.run;synchronization.run
119
120 #use rsync to mirror the website to a remote-host
121 Rsync=no
122 Rsync.Script.Path=/var/www/bin/rsync-copy
123
124 # the maximum allowed size of an uploaded media file in KB.
125 MaxMediaUploadSize=20000
126
127 # the maximum number of allowed media items to upload at once.
128 ServletModule.OpenIndy.MaxMediaUploadItems=20
129
130 # the default number of media items to upload at once
131 ServletModule.OpenIndy.DefaultMediaUploadItems=1
132
133
134 #
135 #
136 # STATIC SITE CONFIG
137 #
138
139 # the url of the static site
140 Producer.ProductionHost=http://indy.code-fu.de
141
142 # the url of the public site
143 Producer.PublicationHost=http://indy.code-fu.de
144
145 # Produrce.StorageRoot is the directory, in which
146 # the generated HTML pages will be stored
147 Producer.StorageRoot=/pub/Dokumente/Indymedia/de-tech/Mir/produced
148
149 # FileEdit module
150 #   a list of directories to edit
151 #   format:
152 #      <name>:<path>:<file filter>:<0|1 (recursion off or on)> [, ....]
153 ServletModule.FileEdit.Configuration= \
154   includes:/pub/Dokumente/Indymedia/de-tech/Mir/produced/inc:.*\\.inc:1
155
156
157 #
158 #
159 # DYNAMIC SITE CONFIG
160 #
161
162 # the url of the openposting-servlet
163 Producer.OpenAction=http://indy.code-fu.de/Mir/servlet/OpenMir
164
165 # use this property if the pages are not produced under the docRoot
166 # of the webserver. all links in the produced pages are prepended
167 # with Producer.DocRoot
168 Producer.DocRoot=
169
170 Producer.ActionServlet=/servlet/Mir
171
172 # this is the name of the subdirectory where the image-dir
173 # will be linked to.
174 Producer.ImageRoot=/img
175
176
177 # the url of the video-server
178 Producer.Video.Host=http://indy.code-fu.de/video
179
180 # the url of the audio-server
181 Producer.Audio.Host=http://indy.code-fu.de/audio
182
183 # the url of the image-server
184 Producer.Image.Host=http://indy.code-fu.de/images
185
186 # the url of the media-server
187 Producer.Media.Host=http://indy.code-fu.de/media
188
189 # the url of the real-media-server
190 Producer.RealMedia.Host=rtsp://some.media.server/somedir/
191
192
193 # image specific storage directories
194 # absolute directory, where the images are saved
195 Producer.Image.Path=/pub/Dokumente/Indymedia/de-tech/Mir/produced/images/
196
197 # media specific storage directories
198 # absolute directory, where the media files are saved
199 Producer.Media.Path=/pub/Dokumente/Indymedia/de-tech/Mir/produced/media
200
201 # absolute directory, where the realmedia data files(ra and rm) are saved
202 # the ram files which point to the RealMedia.Host get saved in the regular Media dir
203 # this should make rsyncing to a separate streaming server much easier
204 Producer.RealMedia.Path=/pub/Dokumente/rtsp
205
206 # relativ directory, where the thumbnails will be saved
207 Producer.Image.IconPath=/icon
208
209 # Tiny Icons for the media types on the newswire summary.
210 # (right hand side of start page)
211 Producer.Icon.TinyImage=photo_small.gif
212 Producer.Icon.TinyAudio=audio_small.gif
213 Producer.Icon.TinyVideo=video_small.gif
214 Producer.Icon.TinyText=text_small.gif
215
216 #Medium sized icons used at various places
217 Producer.Icon.BigImage=photo_big.gif
218 Producer.Icon.BigAudio=audio_big.gif
219 Producer.Icon.BigVideo=video_big.gif
220 Producer.Icon.BigText=text_big.gif
221
222 #Icons used for links
223 Producer.ExtLinkName=extlink.gif
224 Producer.IntLinkName=intlink.gif
225 Producer.MailLinkName=maillink.gif
226
227 #the style sheet used to turn html into xsl:fo
228 #this is not currently in use, so don't worry about it
229 Producer.HTML2FOStyleSheet=/some/dir/mir/etc/producer/html2fo.xsl 
230
231 # the following lines are used to construct PDFs on the fly from one or more articles
232 # for the moment, if you want to change anything else about your pdfs, you 
233 # will have to learn some java!
234 #
235 # keep in mind that there may not be enough room for all the text you enter as the 
236 # value of one these options, if text doesn't appear, the only easy thing to do is 
237 # use less text!
238 #
239
240 # a single line of big text which will appear at the top of the first page of all generated pdfs
241
242 PDF.Title=INDYMEDIA SOMEWHERE
243
244 # about two lines of small text which will appear at the bottom of every page 
245
246 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.
247  
248 #
249 # the size paper your target audience will likely have in their printers.  pick one of A4 or LETTER
250 #
251
252 PDF.PageSize=A4
253
254
255
256
257 #
258 # edit with caution below this line
259 ######################################################################
260
261 #
262 #
263 # DATABASE SETUP
264 #
265
266 #
267 # specify your database
268
269 Database.poolMin=1
270 Database.poolMax=10
271 Database.poolResetTime=1.0
272 Database.PoolLog=log/pool.log
273 Database.Limit=20
274 Database.Username=postgres
275 Database.Password=
276 Database.Host=localhost
277 Database.Name=Mir
278
279 #
280 # this sets the adaptor to be used
281
282 Database.Adaptor=mir.storage.DatabaseAdaptorPostgresql
283
284 #
285 # configuration for adaptor postgres
286 # In this example, "Mir" is the dbname
287
288 Adaptor.PostgreSQL.URL=jdbc:postgresql://localhost:5432/Mir
289 Adaptor.PostgreSQL.Driver=org.postgresql.Driver
290
291 # how many articles should be shown on a list-page
292 Lists.Max.Items=10
293
294 #
295 # Servlet / Module configurations
296 #
297
298 # don't change this unless you really know your i18n.
299 # The default encoding charset used in the written html files as well
300 # as the dynamic output html.
301 # also used for the HTML charset meta tag.
302 Mir.DefaultEncoding=UTF8
303
304 # this encoding is used for the HTML charset meta tag.
305 # it must be the html charset equivalent of the Java encoding above
306 # don't change this unless...
307 Mir.DefaultHTMLCharset=UTF-8