annotate website/digilib-config.html @ 3:9a472dab7e09

more new documentation
author robcast
date Mon, 12 Dec 2011 20:37:53 +0100
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
3 <html xmlns="http://www.w3.org/1999/xhtml">
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
4 <head>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
6 <title>digilib -- Digital Image Library</title>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
7 </head>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
8 <body>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
9 <table border="0" cellspacing="0" cellpadding="10">
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
10 <tr>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
11 <td bgcolor="#a0a0a0">&nbsp;</td>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
12 <td>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
13 <img src="images/digilib-logo-big.png" align="left" />
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
14 <h1>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
15 <tt>digilib</tt> -- a versatile image viewing environment for the internet
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
16 </h1>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
17 </td>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
18 </tr>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
19 <tr>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
20 <td bgcolor="#a0a0a0" valign="top" align="right">
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
21 <p>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
22 <b><a href="index.html">Info</a> </b>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
23 </p>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
24 <p>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
25 <b><a href="http://developer.berlios.de/projects/digilib/">Project</a> </b>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
26 </p>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
27 <p>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
28 <b><a href="http://developer.berlios.de/project/showfiles.php?group_id=251">Download</a>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
29 </b>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
30 </p>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
31 <p>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
32 <b><a href="docs.html">Docs</a></b>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
33 <br />
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
34 <a href="build-maven.html">Building</a>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
35 <br />
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
36 <a href="digilib-config.html">Configuring</a>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
37 <br />
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
38 <a href="http://developer.berlios.de/docman/?group_id=251">...more</a>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
39 </p>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
40 <p>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
41 <b><a href="tips.html">Tips</a> </b>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
42 </p>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
43 <p>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
44 <b><a href="http://hg.berlios.de/repos/digilib">Source</a> </b>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
45 </p>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
46 </td>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
47 <td>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
48
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
49 <h1>Configuring digilib</h1>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
50
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
51 <h2>digilib-config.xml</h2>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
52
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
53 <p>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
54 The main configuration for digilib is <code>digilib-config.xml</code> . It's
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
55 normally in the <code>WEB-INF</code> directory in the webapp. (If you really
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
56 need another location you can define it in the <code>config-file</code>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
57 init-parameter to the servlet)
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
58 </p>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
59
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
60 <p>In the configuration file you can set several paths and options. The file
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
61 looks like this:</p>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
62
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
63 <pre>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
64 &lt;!-- Digilib servlet config file --&gt;
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
65
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
66 &lt;digilib-config&gt;
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
67 &lt;!-- Image to be sent to indicate general failure. --&gt;
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
68 &lt;parameter name=&quot;error-image&quot; value=<b>&quot;/docuserver/images/icons/broken.gif&quot;</b> /&gt;
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
69
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
70 &lt;!-- Image to be sent to indicate authorization failure. --&gt;
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
71 &lt;parameter name=&quot;denied-image&quot; value=<b>&quot;/docuserver/images/icons/alert.red.gif&quot;</b> /&gt;
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
72
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
73 &lt;!-- List of directories where images are searched.
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
74 The authoritative directory with the high-resolution images
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
75 is first in list. --&gt;
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
76 &lt;parameter name=&quot;basedir-list&quot; value=<b>&quot;/docuserver/images:/docuserver/scaled/small&quot;</b> /&gt;
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
77
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
78 &lt;!-- Java class to use for image operations --&gt;
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
79 &lt;parameter name=&quot;docuimage-class&quot; value=&quot;digilib.image.JAIDocuImage&quot; /&gt;
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
80
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
81 &lt;!-- mimimum amount of scaling done with antialiasing --&gt;
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
82 &lt;parameter name=&quot;subsample-minimum&quot; value=&quot;2&quot;/&gt;
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
83
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
84 &lt;!-- default interpolation quality (0=worst) --&gt;
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
85 &lt;parameter name=&quot;default-quality&quot; value=&quot;1&quot;/&gt;
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
86
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
87 &lt;!-- is sending whole image files with mo=file allowed? --&gt;
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
88 &lt;parameter name=&quot;sendfile-allowed&quot; value=&quot;true&quot; /&gt;
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
89
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
90 &lt;!-- the a maximum size of any sent image. (0 means no limit) --&gt;
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
91 &lt;parameter name=&quot;max-image-size&quot; value=&quot;0&quot; /&gt;
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
92
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
93 &lt;!-- number of working threads --&gt;
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
94 &lt;parameter name=&quot;worker-threads&quot; value=&quot;2&quot; /&gt;
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
95
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
96 &lt;!-- number of waiting requests in queue --&gt;
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
97 &lt;parameter name="max-waiting-threads" value="20" /&gt;
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
98
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
99 &lt;!-- Restrict access to authorized users.
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
100 User authentication and roles are provided by the servlet container
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
101 (see tomcat-users.xml).
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
102 Authorization for resources (directories) is evaluated by the servlet
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
103 (see auth-file). --&gt;
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
104 &lt;parameter name=&quot;use-authorization&quot; value=&quot;true&quot;/&gt;
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
105
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
106 &lt;!-- Location of XML file with authorization requirements. --&gt;
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
107 &lt;parameter name=&quot;auth-file&quot; value=&quot;digilib-auth.xml&quot;/&gt;
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
108
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
109 &lt;!-- Part of URL to indicate authenticated access to Tomcat. --&gt;
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
110 &lt;parameter name=&quot;auth-url-path&quot; value=&quot;authenticated/&quot;/&gt;
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
111
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
112 &lt;!-- use mapping of &quot;virtual directories&quot; to real directories on the server --&gt;
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
113 &lt;parameter name=&quot;use-mapping&quot; value=&quot;false&quot;/&gt;
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
114
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
115 &lt;!-- location of XML mapping file --&gt;
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
116 &lt;parameter name=&quot;mapping-file&quot; value=&quot;digilib-map.xml&quot;/&gt;
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
117
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
118 &lt;!-- location of logger config file --&gt;
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
119 &lt;parameter name=&quot;log-config-file&quot; value=&quot;log4j-config.xml&quot;/&gt;
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
120 &lt;/digilib-config&gt;
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
121 </pre>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
122
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
123 <p>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
124 You have to adjust the <code>basedir-list</code> parameter to the directories
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
125 where your images are installed. You need only one directory if you don't
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
126 provide prescaled low resolution versions of your images. The directory with the
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
127 high-resolution images must be the first entry in the list.
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
128 </p>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
129
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
130 <p>You can supply your own icons for the &quot;error&quot; and &quot;access
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
131 denied&quot; messages by the servlet. Standard images will be used if these
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
132 parameters are undefined.</p>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
133
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
134 <p>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
135 You can specify the Java toolkit implementation with the <code>docuimage-class</code>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
136 parameter. The <code>ImageLoaderDocuImage</code> usually gives best performance
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
137 and works with JDK 1.4 and up.
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
138 </p>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
139
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
140
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
141 <h2>digilib-auth.xml</h2>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
142
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
143 <p>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
144 The digilib access authorization is defined in the file defined by the <code>auth-file</code>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
145 parameter (usually <code>digilib-auth.xml</code> in <code>WEB-INF</code> ).
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
146 </p>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
147
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
148 <p>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
149 The file has two parts <code>diglib-paths</code> and <code>diglib-addresses</code>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
150 . It looks like this:
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
151 </p>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
152
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
153 <pre>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
154 &lt;auth-config&gt;
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
155
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
156 &lt;digilib-paths&gt;
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
157 &lt;!--
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
158 A user must supply one of the roles under &quot;role&quot;
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
159 to access the directory &quot;name&quot;.
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
160 Roles under &quot;role&quot; must be separated by comma only (no spaces).
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
161 --&gt;
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
162 &lt;path name=&quot;histast/eastwood-collection&quot; role=&quot;eastwood-coll&quot; /&gt;
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
163 &lt;path name=&quot;ptolemaios_geo&quot; role=&quot;ptolemaios-geo&quot; /&gt;
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
164 &lt;/digilib-paths&gt;
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
165
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
166 &lt;digilib-addresses&gt;
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
167 &lt;!--
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
168 A computer with an ip address that matches &quot;ip&quot;
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
169 is automatically granted all roles under &quot;role&quot;.
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
170 The ip address is matched from the left (in full quads).
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
171 Roles under &quot;role&quot; must be separated by comma only (no spaces).
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
172 --&gt;
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
173 &lt;address ip=&quot;127&quot; role=&quot;local&quot; /&gt;
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
174 &lt;address ip=&quot;130.92.68&quot; role=&quot;eastwood-coll,ptolemaios-geo&quot; /&gt;
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
175 &lt;address ip=&quot;130.92.151&quot; role=&quot;ALL&quot; /&gt;
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
176 &lt;/digilib-addresses&gt;
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
177
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
178 &lt;/auth-config&gt;
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
179 </pre>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
180
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
181 <p>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
182 <code>diglib-paths</code> defines restricted directories and the roles needed
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
183 for access. The roles are defined with the users in <code>tomcat-users.xml</code>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
184 (see above). All subdirectories of the given directories have the same
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
185 restrictions. All directories not listed here (and not subdirectories of listed
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
186 directories) are freely accessible.
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
187 </p>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
188
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
189 <p>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
190 <code>diglib-addresses</code> defines hosts or networks of computers that are
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
191 automatically authenticated without username and password. Hosts can be assigned
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
192 roles. The special keyword <code>ALL</code> authorizes for everything. If the
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
193 role assigned to the computer is not sufficient to access a resource the user
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
194 will be asked for username and password.
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
195 </p>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
196
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
197
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
198
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
199 </td>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
200 </tr>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
201 <tr>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
202 <td style="padding: 0px" align="left">
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
203 <a href="http://developer.berlios.de"> <img
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
204 src="http://developer.berlios.de/bslogo.php?group_id=0&type=1" width="124"
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
205 height="32" border="0" alt="BerliOS Logo" />
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
206 </a>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
207 </td>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
208 <td></td>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
209 </tr>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
210 </table>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
211
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
212 </body>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
213 </html>