-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #30 from alessandro-russo/master
Minor security improvements
- Loading branch information
Showing
5 changed files
with
128 additions
and
31 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
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,64 @@ | ||
<?xml version="1.0"?> | ||
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure.dtd"> | ||
|
||
<!-- =============================================================== --> | ||
<!-- Configure the Jetty Server --> | ||
<!-- --> | ||
<!-- Documentation of this file format can be found at: --> | ||
<!-- http://wiki.eclipse.org/Jetty/Reference/jetty.xml_syntax --> | ||
<!-- --> | ||
<!-- Additional configuration files are available in $JETTY_HOME/etc --> | ||
<!-- and can be mixed in. For example: --> | ||
<!-- java -jar start.jar etc/jetty-ssl.xml --> | ||
<!-- --> | ||
<!-- See start.ini file for the default configuraton files --> | ||
<!-- =============================================================== --> | ||
|
||
|
||
<Configure id="Server" class="org.eclipse.jetty.server.Server"> | ||
|
||
<!-- =========================================================== --> | ||
<!-- Server Thread Pool --> | ||
<!-- =========================================================== --> | ||
<Set name="ThreadPool"> | ||
<!-- Default queued blocking threadpool --> | ||
<New class="org.eclipse.jetty.util.thread.QueuedThreadPool"> | ||
<Set name="minThreads">10</Set> | ||
<Set name="maxThreads">200</Set> | ||
<Set name="detailedDump">false</Set> | ||
</New> | ||
</Set> | ||
|
||
<!-- =========================================================== --> | ||
<!-- Set handler Collection Structure --> | ||
<!-- =========================================================== --> | ||
<Set name="handler"> | ||
<New id="Handlers" class="org.eclipse.jetty.server.handler.HandlerCollection"> | ||
<Set name="handlers"> | ||
<Array type="org.eclipse.jetty.server.Handler"> | ||
<Item> | ||
<New id="Contexts" class="org.eclipse.jetty.server.handler.ContextHandlerCollection"/> | ||
</Item> | ||
<Item> | ||
<New id="DefaultHandler" class="org.eclipse.jetty.server.handler.DefaultHandler"/> | ||
</Item> | ||
</Array> | ||
</Set> | ||
</New> | ||
</Set> | ||
|
||
<Ref id="DefaultHandler"> | ||
<Set name="showContexts">false</Set> | ||
</Ref> | ||
|
||
<!-- =========================================================== --> | ||
<!-- extra options --> | ||
<!-- =========================================================== --> | ||
<Set name="stopAtShutdown">true</Set> | ||
<Set name="sendServerVersion">false</Set> | ||
<Set name="sendDateHeader">true</Set> | ||
<Set name="gracefulShutdown">1000</Set> | ||
<Set name="dumpAfterStart">false</Set> | ||
<Set name="dumpBeforeStop">false</Set> | ||
|
||
</Configure> |
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,10 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" | ||
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" | ||
id="WebApp_ID" version="2.5"> | ||
<context-param> | ||
<param-name>org.eclipse.jetty.servlet.Default.dirAllowed</param-name> | ||
<param-value>false</param-value> | ||
</context-param> | ||
</web-app> |