-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* restore ee8 proxy Signed-off-by: Olivier Lamy <oliver.lamy@gmail.com>
- Loading branch information
Showing
12 changed files
with
164 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | ||
<parent> | ||
<groupId>org.eclipse.jetty.ee8</groupId> | ||
<artifactId>jetty-ee8</artifactId> | ||
<version>12.0.0-SNAPSHOT</version> | ||
</parent> | ||
|
||
<modelVersion>4.0.0</modelVersion> | ||
<artifactId>jetty-ee8-proxy</artifactId> | ||
<name>EE8 :: Jetty :: Proxy</name> | ||
<description>Jetty Proxy</description> | ||
|
||
<properties> | ||
<ee9.module>jetty-ee9-proxy</ee9.module> | ||
<bundle-symbolic-name>${project.groupId}.proxy</bundle-symbolic-name> | ||
<spotbugs.onlyAnalyze>org.eclipse.jetty.ee8.proxy.*</spotbugs.onlyAnalyze> | ||
</properties> | ||
<build> | ||
<plugins> | ||
<plugin> | ||
<artifactId>maven-surefire-plugin</artifactId> | ||
<configuration> | ||
<argLine> | ||
@{argLine} ${jetty.surefire.argLine} --add-reads org.eclipse.jetty.ee8.proxy=org.eclipse.jetty.logging | ||
</argLine> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
<dependencies> | ||
<dependency> | ||
<groupId>org.slf4j</groupId> | ||
<artifactId>slf4j-api</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.eclipse.jetty.toolchain</groupId> | ||
<artifactId>jetty-servlet-api</artifactId> | ||
<scope>provided</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.eclipse.jetty.ee8</groupId> | ||
<artifactId>jetty-ee8-servlet</artifactId> | ||
<scope>provided</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.eclipse.jetty</groupId> | ||
<artifactId>jetty-util</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.eclipse.jetty</groupId> | ||
<artifactId>jetty-client</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.eclipse.jetty</groupId> | ||
<artifactId>jetty-util-ajax</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.eclipse.jetty</groupId> | ||
<artifactId>jetty-http-tools</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.eclipse.jetty</groupId> | ||
<artifactId>jetty-slf4j-impl</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.eclipse.jetty</groupId> | ||
<artifactId>jetty-rewrite</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.eclipse.jetty.toolchain</groupId> | ||
<artifactId>jetty-test-helper</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
</dependencies> | ||
</project> |
35 changes: 35 additions & 0 deletions
35
jetty-ee8/jetty-ee8-proxy/src/main/config/etc/jetty-ee8-proxy.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?xml version="1.0"?> | ||
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "https://www.eclipse.org/jetty/configure_10_0.dtd"> | ||
|
||
<Configure id="Server" class="org.eclipse.jetty.server.Server"> | ||
|
||
<Set name="handler"> | ||
<New class="org.eclipse.jetty.ee8.proxy.ConnectHandler"> | ||
<Set name="handler"> | ||
<New class="org.eclipse.jetty.ee8.servlet.ServletHandler"> | ||
<Call id="proxyHolder" name="addServletWithMapping"> | ||
<Arg><Property name="jetty.proxy.servletClass" default="org.eclipse.jetty.ee8.proxy.ProxyServlet"/></Arg> | ||
<Arg><Property name="jetty.proxy.servletMapping" default="/*"/></Arg> | ||
<Call name="setInitParameter"> | ||
<Arg>maxThreads</Arg> | ||
<Arg><Property name="jetty.proxy.maxThreads" default="128" /></Arg> | ||
</Call> | ||
<Call name="setInitParameter"> | ||
<Arg>maxConnections</Arg> | ||
<Arg><Property name="jetty.proxy.maxConnections" default="256" /></Arg> | ||
</Call> | ||
<Call name="setInitParameter"> | ||
<Arg>idleTimeout</Arg> | ||
<Arg><Property name="jetty.proxy.idleTimeout" default="30000" /></Arg> | ||
</Call> | ||
<Call name="setInitParameter"> | ||
<Arg>timeout</Arg> | ||
<Arg><Property name="jetty.proxy.timeout" default="60000" /></Arg> | ||
</Call> | ||
</Call> | ||
</New> | ||
</Set> | ||
</New> | ||
</Set> | ||
|
||
</Configure> |
27 changes: 27 additions & 0 deletions
27
jetty-ee8/jetty-ee8-proxy/src/main/config/modules/ee8-proxy.mod
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# DO NOT EDIT - See: https://www.eclipse.org/jetty/documentation/current/startup-modules.html | ||
|
||
[description] | ||
Enables the Jetty Proxy service. | ||
Allows the server to act as a non-transparent proxy for browsers. | ||
|
||
[depend] | ||
ee8-servlet | ||
client | ||
|
||
[environment] | ||
ee8 | ||
|
||
[lib] | ||
lib/jetty-ee8-proxy-${jetty.version}.jar | ||
|
||
[xml] | ||
etc/jetty-ee8-proxy.xml | ||
|
||
[ini-template] | ||
## Proxy Configuration | ||
# jetty.proxy.servletClass=org.eclipse.jetty.ee8.proxy.ProxyServlet | ||
# jetty.proxy.servletMapping=/* | ||
# jetty.proxy.maxThreads=128 | ||
# jetty.proxy.maxConnections=256 | ||
# jetty.proxy.idleTimeout=30000 | ||
# jetty.proxy.timeout=60000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters