Skip to content

Commit

Permalink
fix(docker): Enable gzip compression
Browse files Browse the repository at this point in the history
  • Loading branch information
barnslig committed Feb 19, 2022
1 parent 0744585 commit 209edc9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docker/etc/nginx/sites-enabled/default
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ server {
add_header X-Content-Type-Options "nosniff" always;
add_header Referrer-Policy "no-referrer" always;

gzip on;
gzip_vary on;
gzip_proxied any;
gzip_comp_level 6;
gzip_types text/plain text/css text/xml application/json application/javascript application/rss+xml application/atom+xml image/svg+xml;

location / {
try_files $uri $uri/ /index.html;
}
Expand Down

0 comments on commit 209edc9

Please sign in to comment.