Ticket #13089: 0001-added-compression-to-jetty-config.patch

File 0001-added-compression-to-jetty-config.patch, 1.4 KB (added by iwakeh, 5 years ago)

jetty.xml with compression

  • etc/jetty.xml

    From c728934252fffb49cb099e3aefad093778b6412e Sun Nov 16 09:30:00 2014
    From: iwakeh <iwakeh@users.ourproject.org>
    Date: Sun, 16 Nov 2014 09:30:00 +0000
    Subject: [PATCH] added compression to jetty config.
    
    ---
     etc/jetty.xml | 13 ++++++++++++-
     1 file changed, 12 insertions(+), 1 deletion(-)
    
    diff --git a/etc/jetty.xml b/etc/jetty.xml
    index 4668b6b..7caee2d 100644
    a b  
    77
    88  <Set name="threadPool">
    99    <New class="org.eclipse.jetty.util.thread.QueuedThreadPool">
    10       <Set name="minThreads">10</Set>
     10      <Set name="minThreads">25</Set>
    1111      <Set name="maxThreads">250</Set>
    1212      <Set name="detailedDump">false</Set>
    1313    </New>
     
    3030    </Arg>
    3131  </Call>
    3232
     33  <New id="gzipCompressor" class="org.eclipse.jetty.server.handler.GzipHandler">
     34    <Set name="minGzipSize">2048</Set>
     35    <Set name="mimeTypes">text/html,text/xml,text/plain,application/json</Set>
     36    <Set name="excluded">gozilla,traviata</Set>
     37 </New>
     38
    3339  <Set name="handler">
    3440    <!-- maybe add more handlers (statistics, logging, etc.) later -->
    3541    <New class="org.eclipse.jetty.server.handler.ContextHandlerCollection">
     
    3844          <Ref id="webAppContext"/>
    3945        </Arg>
    4046      </Call>
     47      <Call name="addHandler">
     48        <Arg>
     49          <Ref id="gzipCompressor"/>
     50        </Arg>
     51      </Call>
    4152    </New>
    4253  </Set>
    4354