-
Notifications
You must be signed in to change notification settings - Fork 23
/
wayback.xml
127 lines (106 loc) · 4.27 KB
/
wayback.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<?xml version="1.0" encoding="UTF-8"?>
<!--
File: $Id$
Revision: $Revision$
Author: $Author$
Date: $Date$
The Netarchive Suite - Software to harvest and preserve websites
Copyright 2004-2018 The Royal Danish Library,
the National Library of France and the Austrian
National Library.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-->
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd"
default-init-method="init">
<!--
Macro-like substitutions for the overall file:
wayback.basedir: default top level directory for all index, state,
locationdb storage.
-->
<bean class=
"org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="properties">
<value>
wayback.basedir=/tmp/wayback
</value>
</property>
</bean>
<!--
Only tested with CDXCollection, possibly work with other collection types
as well.
-->
<import resource="CDXCollection.xml"/>
<!--
This is the only AccessPoint defined by default within this wayback.xml
Spring configuration file, providing an ArchivalURL Replay UI.
This AccessPoint currently will provide access only from the machine
running Tomcat. To provide external access, replace "localhost.archive.org"
with your fully qualified hostname of the computer running Tomcat.
-->
<import resource="ArchivalUrlReplay.xml"/>
<bean name="8080:wayback" class="org.archive.wayback.webapp.AccessPoint">
<property name="collection" ref="localcdxcollection" />
<property name="replay" ref="archivalurlreplay" />
<property name="query">
<bean class="org.archive.wayback.query.Renderer">
<property name="captureJsp"
value="/WEB-INF/query/CalendarResults.jsp" />
</bean>
</property>
<property name="uriConverter">
<bean
class="org.archive.wayback.archivalurl.ArchivalUrlResultURIConverter">
<property name="replayURIPrefix"
value="http://localhost.archive.org:8080/wayback/"/>
</bean>
</property>
<property name="parser">
<bean class="org.archive.wayback.archivalurl.ArchivalUrlRequestParser">
<property name="maxRecords" value="1000" />
<property name="earliestTimestamp" value="2005" />
</bean>
</property>
</bean>
<!--
The following AccessPoint inherits all configuration from the 8080:wayback
AccessPoint, but provides a Proxy Replay UI to the same collection. These
two access points can be used simultaneously on the same Tomcat
installation.
Note: using this AccessPoint requires adding a "Connector" on port 8090
in your Tomcat's server.xml file.
-->
<import resource="ProxyReplay.xml"/>
<bean name="8090" parent="8080:wayback">
<property name="urlRoot" value="http://localhost:8090/" />
<property name="replay" ref="proxyreplay" />
<property name="uriConverter">
<bean class="org.archive.wayback.proxy.RedirectResultURIConverter">
<property name="redirectURI"
value="http://localhost.archive.org:8090/jsp/QueryUI/Redirect.jsp" />
</bean>
</property>
<property name="parser">
<bean class="org.archive.wayback.proxy.ProxyRequestParser">
<property name="localhostNames">
<list>
<value>localhost.archive.org</value>
</list>
</property>
<property name="maxRecords" value="1000" />
</bean>
</property>
</bean>
</beans>