506
|
1 <?xml version="1.0" encoding="UTF-8"?>
|
|
2 <!-- Digilib servlet config file -->
|
|
3
|
|
4 <digilib-config>
|
|
5 <!-- Image to be sent to indicate an error or general failure. -->
|
|
6 <parameter name="error-image" value="img/digilib-error.png" />
|
|
7
|
|
8 <!-- Image to be sent to indicate an authorization failure. -->
|
|
9 <parameter name="denied-image" value="img/digilib-denied.png" />
|
|
10
|
|
11 <!-- Image to be sent to indicate that the request was correct, but the specified image could not be ound. -->
|
|
12 <parameter name="notfound-image" value="img/digilib-notfound.png" />
|
|
13
|
|
14 <!-- List of directories where images are searched.
|
|
15 Directories with low-resolution images are LAST!!! in list.
|
|
16 Use OS-specific path separators (":" for Unix, ";" for Windows) -->
|
|
17 <parameter name="basedir-list" value="/docuserver/images:/docuserver/scaled/small:/docuserver/scaled/thumb" />
|
|
18
|
|
19 <!-- Java class to use for image operations -->
|
|
20 <parameter name="docuimage-class" value="digilib.image.ImageLoaderDocuImage" />
|
|
21
|
|
22 <!-- mimimum amount of scaling done with antialiasing -->
|
|
23 <parameter name="subsample-minimum" value="2"/>
|
|
24
|
|
25 <!-- default interpolation quality (0=worst) -->
|
|
26 <parameter name="default-quality" value="1"/>
|
|
27
|
|
28 <!-- is sending whole image files with mo=file allowed? -->
|
|
29 <parameter name="sendfile-allowed" value="true" />
|
|
30
|
|
31 <!-- the a maximum size of any sent image. (0 means no limit) -->
|
|
32 <parameter name="max-image-size" value="0" />
|
|
33
|
|
34 <!-- use safe but slow directory indexing -->
|
|
35 <parameter name="safe-dir-index" value="false" />
|
|
36
|
|
37 <!-- number of working threads -->
|
|
38 <parameter name="worker-threads" value="2" />
|
|
39
|
|
40 <!-- Restrict access to authorized users.
|
|
41 User authentication and roles are provided by the servlet container
|
|
42 (see tomcat-users.xml).
|
|
43 Authorization for resources (directories) is evaluated by the servlet
|
|
44 (see auth-file). -->
|
|
45 <parameter name="use-authorization" value="false" />
|
|
46
|
|
47 <!-- URL location of XML file with authorization requirements. -->
|
|
48 <parameter name="auth-file" value="digilib-auth.xml" />
|
|
49
|
|
50 <!-- Part of URL to indicate authenticated access to Tomcat. -->
|
|
51 <parameter name="auth-url-path" value="authenticated" />
|
|
52
|
|
53 <!-- use mapping of "virtual directories" to real directories on the server -->
|
|
54 <parameter name="use-mapping" value="false"/>
|
|
55
|
|
56 <!-- location of XML mapping file -->
|
|
57 <parameter name="mapping-file" value="digilib-map.xml"/>
|
|
58
|
|
59 <!-- location of logger config file -->
|
|
60 <parameter name="log-config-file" value="log4j-config.xml"/>
|
|
61
|
|
62
|
|
63
|
|
64 <!-- location for PDF files while still in progress -->
|
|
65 <parameter name="pdf-temp-dir" value="pdf_temp/" />
|
|
66
|
|
67 <!-- location for PDF files upon completion -->
|
|
68 <parameter name="pdf-cache-dir" value="cache/"/>
|
|
69
|
|
70
|
|
71 </digilib-config>
|