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