Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Trac Trac
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Issues 246
    • Issues 246
    • List
    • Boards
    • Service Desk
    • Milestones
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
  • Wiki
    • Wiki
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • Legacy
  • TracTrac
  • Issues
  • #12179

Closed (moved)
(moved)
Open
Created Jun 02, 2014 by Karsten Loesing@karsten

Please configure sewerzowi's Tomcat or Apache to compress Onionoo's responses

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.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking