Skip to content

Commit

Permalink
Merge pull request #11 from sharkoz/patch-1
Browse files Browse the repository at this point in the history
Enable compression for faster download of history
  • Loading branch information
linusg authored Sep 24, 2019
2 parents 6dc1cd6 + 959d71f commit d06a87f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

> A modern web interface for OwnTracks made with Vue.js
![Docker Pulls](https://img.shields.io/docker/pulls/owntracks/frontend)
[![Docker Pulls](https://img.shields.io/docker/pulls/owntracks/frontend)](https://hub.docker.com/r/owntracks/frontend)

<p style="text-align: center;">
<img src="docs/images/owntracks-ui.png" alt="OwnTracks UI">
Expand Down
8 changes: 8 additions & 0 deletions nginx.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ http {
include /etc/nginx/mime.types;
try_files $uri $uri/index.html;
}

gzip on;
gzip_vary on;
gzip_proxied any;
gzip_comp_level 6;
gzip_buffers 16 8k;
gzip_http_version 1.1;
gzip_types text/plain text/css application/json application/javascript text/javascript;
}
}

0 comments on commit d06a87f

Please sign in to comment.