forked from ISTI-ansible-roles/ansible-roles
53 lines
1.8 KiB
XML
53 lines
1.8 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
|
|
http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
|
|
version="3.0">
|
|
|
|
<display-name>{{ java_rproxy_display_name }}</display-name>
|
|
{% for servlet in java_rproxy_targets %}
|
|
<servlet>
|
|
<servlet-name>{{ servlet.servlet_name }}</servlet-name>
|
|
<servlet-class>org.mitre.dsmiley.httpproxy.ProxyServlet</servlet-class>
|
|
<init-param>
|
|
<param-name>targetUri</param-name>
|
|
<param-value>{{ servlet. target_uri }}</param-value>
|
|
</init-param>
|
|
<init-param>
|
|
<param-name>log</param-name>
|
|
<param-value>{{ servlet.log }}</param-value>
|
|
</init-param>
|
|
<init-param>
|
|
<param-name>forwardip</param-name>
|
|
<param-value>{{ servlet.forwardip }}</param-value>
|
|
</init-param>
|
|
<init-param>
|
|
<param-name>preserveHost</param-name>
|
|
<param-value>{{ servlet.preserve_host }}</param-value>
|
|
</init-param>
|
|
<init-param>
|
|
<param-name>preserveCookies</param-name>
|
|
<param-value>{{ servlet.preserve_cookies }}</param-value>
|
|
</init-param>
|
|
<init-param>
|
|
<param-name>http.protocol.handle-redirects</param-name>
|
|
<param-value>{{ servlet.handle_redirects }}</param-value>
|
|
</init-param>
|
|
<init-param>
|
|
<param-name>http.socket.timeout</param-name>
|
|
<param-value>{{ servlet.socket_timeout }}</param-value>
|
|
</init-param>
|
|
<init-param>
|
|
<param-name>http.read.timeout</param-name>
|
|
<param-value>{{ servlet.read_timeout }}</param-value>
|
|
</init-param>
|
|
</servlet>
|
|
<servlet-mapping>
|
|
<servlet-name>{{ servlet.servlet_name }}</servlet-name>
|
|
{% for pattern in servlet.url_patterns %}
|
|
<url-pattern>{{ pattern }}</url-pattern>
|
|
{% endfor %}
|
|
</servlet-mapping>
|
|
{% endfor %}
|
|
</web-app>
|