Skip to content

Commit

Permalink
Compress more types (immich-app#1211)
Browse files Browse the repository at this point in the history
  • Loading branch information
bt90 authored Dec 30, 2022
1 parent b584185 commit befd0f6
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,19 @@ http {

server {

# Compression
gzip on;
gzip_comp_level 2;
gzip_min_length 1000;
gzip_proxied any;
gzip_types
application/javascript
application/json
font/truetype
image/svg+xml
text/css
text/html;
gzip_vary on;
gunzip on;

client_max_body_size 50000M;
Expand All @@ -49,11 +60,6 @@ http {

location /api {

# Compression
gzip_static on;
gzip_min_length 1000;
gzip_comp_level 2;

proxy_buffering off;
proxy_buffer_size 16k;
proxy_busy_buffers_size 24k;
Expand All @@ -76,11 +82,6 @@ http {

location / {

# Compression
gzip_static on;
gzip_min_length 1000;
gzip_comp_level 2;

proxy_buffering off;
proxy_buffer_size 16k;
proxy_busy_buffers_size 24k;
Expand Down

0 comments on commit befd0f6

Please sign in to comment.