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
  • #15475

Closed (moved)
(moved)
Open
Created Mar 26, 2015 by Tom Ritter@tom

Enable access to historical consensus health pages

Currently consensus health has a little arrow next to a relay to jump to that fingerprint in the previous hour's consensus. (We store 3 weeks of consensuses).

Clicking the arrow doesn't work, because the html files are stored gzipped on the server. Apache must be modified to enable access to those files.

Everyone I found was using the same trick to serve compressed content through Apache: trick Apache into sending gzip content but not compressing it, and then manually adding the gzip header. I have this deployed on http://utternoncesense.com like so:

<VirtualHost [my IPs]>
        ServerName utternoncesense.com
        ServerAlias www.utternoncesense.com
        ServerAlias ipv6.utternoncesense.com

        DocumentRoot /var/www/localhost/htdocs/consensus-health
        <Directory "/var/www/localhost/htdocs/consensus-health">
               Options -Indexes
               AllowOverride All
               Require all granted
        </Directory>

        SetOutputFilter deflate
        Header set Content-Encoding gzip

        <FilesMatch "consensus-health-(.+)\.html$">
                SetEnv no-gzip 1
        </FilesMatch>

        RewriteEngine On
        RewriteCond %{HTTP:Accept-Encoding} gzip
        RewriteCond %{REQUEST_FILENAME}.gz -f
        RewriteRule (.*\.html)$ $1.gz [L]
</VirtualHost>

A symlink from a .html to the .html.gz must be present. If the transfer script copies symlinks as files, that would be bad (well, double the size needlessly).

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