comparison client/digitallibrary/WEB-INF/digilib-config.xml @ 305:c118e503f625

Servlet version 1.5.1b -- the beginning of the next generation :-) - code restructuring to improve scaleability - new Initialiser servlet that must be run first - image transformation work moved to DigilibImageWorker class - Maximum number of concurrent threads limited by Semaphore - old JIMI toolkit implementation removed - new option "mo=jpg" to force sending JPEGs
author robcast
date Sun, 24 Oct 2004 23:12:56 +0200
parents 59a2bc922652
children 8a58a25b6097
comparison
equal deleted inserted replaced
304:4580550d8e75 305:c118e503f625
1 <?xml version="1.0" encoding="UTF-8"?> 1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- Digilib servlet config file --> 2 <!-- Digilib servlet config file -->
3 3
4 <digilib-config> 4 <digilib-config>
5 <!-- Image to be sent to indicate general failure. --> 5 <!-- Image to be sent to indicate general failure. -->
6 <parameter name="error-image" value="/data01/docuserver/images/icons/broken.gif" /> 6 <parameter name="error-image" value="/docuserver/images/icons/broken.gif" />
7 7
8 <!-- Image to be sent to indicate authorization failure. --> 8 <!-- Image to be sent to indicate authorization failure. -->
9 <parameter name="denied-image" value="/data01/docuserver/images/icons/alert.red.gif" /> 9 <parameter name="denied-image" value="/docuserver/images/icons/alert.red.gif" />
10 10
11 <!-- List of directories where images are searched. 11 <!-- List of directories where images are searched.
12 Directories with low-resolution images are LAST!!! in list. --> 12 Directories with low-resolution images are LAST!!! in list. -->
13 <parameter name="basedir-list" value="/data01/docuserver/images:/data01/docuserver/scaled/small" /> 13 <parameter name="basedir-list" value="/docuserver/images:/docuserver/scaled/small:/docuserver/scaled/thumb" />
14 14
15 <!-- Java class to use for image operations --> 15 <!-- Java class to use for image operations -->
16 <parameter name="docuimage-class" value="digilib.image.ImageLoaderDocuImage" /> 16 <parameter name="docuimage-class" value="digilib.image.ImageLoaderDocuImage" />
17 17
18 <!-- mimimum amount of scaling done with antialiasing --> 18 <!-- mimimum amount of scaling done with antialiasing -->
25 <parameter name="sendfile-allowed" value="true" /> 25 <parameter name="sendfile-allowed" value="true" />
26 26
27 <!-- the a maximum size of any sent image. (0 means no limit) --> 27 <!-- the a maximum size of any sent image. (0 means no limit) -->
28 <parameter name="max-image-size" value="0" /> 28 <parameter name="max-image-size" value="0" />
29 29
30 <!-- use safe but slow directory indexing -->
31 <parameter name="safe-dir-index" value="false" />
32
33 <!-- number of working threads -->
34 <parameter name="worker-threads" value="2" />
35
30 <!-- Restrict access to authorized users. 36 <!-- Restrict access to authorized users.
31 User authentication and roles are provided by the servlet container 37 User authentication and roles are provided by the servlet container
32 (see tomcat-users.xml). 38 (see tomcat-users.xml).
33 Authorization for resources (directories) is evaluated by the servlet 39 Authorization for resources (directories) is evaluated by the servlet
34 (see auth-file). --> 40 (see auth-file). -->
35 <parameter name="use-authorization" value="true" /> 41 <parameter name="use-authorization" value="false" />
36 42
37 <!-- URL location of XML file with authorization requirements. --> 43 <!-- URL location of XML file with authorization requirements. -->
38 <parameter name="auth-file" value="/data01/docuserver/www/digilib_config/digilib-auth.xml" /> 44 <parameter name="auth-file" value="digilib-auth.xml" />
39 45
40 <!-- Part of URL to indicate authenticated access to Tomcat. --> 46 <!-- Part of URL to indicate authenticated access to Tomcat. -->
41 <parameter name="auth-url-path" value="authenticated" /> 47 <parameter name="auth-url-path" value="authenticated" />
42 48
43 <!-- use mapping of "virtual directories" to real directories on the server --> 49 <!-- use mapping of "virtual directories" to real directories on the server -->