[tor-bugs] #12179 [Tor Sysadmin Team]: Please configure sewerzowi's Tomcat or Apache to compress Onionoo's responses

Tor Bug Tracker & Wiki blackhole at torproject.org
Mon Jun 2 05:53:07 UTC 2014


#12179: Please configure sewerzowi's Tomcat or Apache to compress Onionoo's
responses
-------------------------------+---------------------
 Reporter:  karsten            |          Owner:
     Type:  task               |         Status:  new
 Priority:  normal             |      Milestone:
Component:  Tor Sysadmin Team  |        Version:
 Keywords:                     |  Actual Points:
Parent ID:                     |         Points:
-------------------------------+---------------------
 The following '''untested''' change to `/etc/tomcat6/server.xml` should
 turn on compression for JSON responses starting at 2KiB.  (I took the
 opportunity to also changes "metrics" to "onionoo" in two places.)

 {{{
                 maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
                 enableLookups="false" redirectPort="8443"
 acceptCount="100"
                 connectionTimeout="20000" disableUploadTimeout="true"
 -               compression="off" compressionMinSize="2048"
 +               compression="on" compressionMinSize="2048"
                 noCompressionUserAgents="gozilla, traviata"
 -               compressableMimeType="text/html,text/xml,text/plain" />
 +               compressableMimeType="application/json" />
      <Engine name="Catalina" defaultHost="sewerzowi.torproject.org">
 -      <Host name="metrics.torproject.org" appBase="webapps"
 +      <Host name="onionoo.torproject.org" appBase="webapps"
              unpackWARs="true" autoDeploy="true"
              xmlValidation="false" xmlNamespaceAware="false">
          <Alias>sewerzowi.torproject.org</Alias>
          <Valve className="org.apache.catalina.valves.AccessLogValve"
 -               directory="logs" prefix="metrics_access_log."
 suffix=".txt"
 +               directory="logs" prefix="onionoo_access_log."
 suffix=".txt"
                 pattern="%l %u %t %r %s %b" resolveHosts="false"/>
        </Host>
      </Engine>
 }}}

 If It's easier to compress responses in Apache, not in Tomcat, that's fine
 by me, too.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/12179>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list