diff options
author | David Ostrovsky <david@ostrovsky.org> | 2014-03-10 01:50:49 +0100 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2014-05-05 11:16:30 -0400 |
commit | ec24568f14ee38b264c86133ce8ebcc35a39034b (patch) | |
tree | 053fc0a9c67a81ca7f7290f2e1e8f7f9ea5276e1 /src/main/java/WEB-INF | |
parent | 3920e1f852b0417fd1217095d7ec12cbd6f41cb8 (diff) | |
download | gitblit-ec24568f14ee38b264c86133ce8ebcc35a39034b.tar.gz gitblit-ec24568f14ee38b264c86133ce8ebcc35a39034b.zip |
Add http request filter extension point
To allow for integration of 3rd party server monitoring solutions,
Gitblit needs to expose an extension point for collecting http data.
Diffstat (limited to 'src/main/java/WEB-INF')
-rw-r--r-- | src/main/java/WEB-INF/web.xml | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/main/java/WEB-INF/web.xml b/src/main/java/WEB-INF/web.xml index cb483af4..3a6c4490 100644 --- a/src/main/java/WEB-INF/web.xml +++ b/src/main/java/WEB-INF/web.xml @@ -214,6 +214,15 @@ <url-pattern>/robots.txt</url-pattern>
</servlet-mapping>
+ <filter>
+ <filter-name>ProxyFilter</filter-name>
+ <filter-class>com.gitblit.servlet.ProxyFilter</filter-class>
+ </filter>
+ <filter-mapping>
+ <filter-name>ProxyFilter</filter-name>
+ <url-pattern>/*</url-pattern>
+ </filter-mapping>
+
<!-- Git Access Restriction Filter
<url-pattern> MUST match:
* GitServlet
@@ -353,4 +362,4 @@ <url-pattern>/*</url-pattern>
</filter-mapping>
-</web-app>
+</web-app>
\ No newline at end of file |