1
0
mirror of https://github.com/immich-app/immich.git synced 2024-12-25 10:43:13 +02:00

Compress more types (#1211)

This commit is contained in:
bt90 2022-12-30 03:37:50 +01:00 committed by GitHub
parent b584185f0f
commit befd0f6ecd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,8 +38,19 @@ http {
server { server {
# Compression
gzip on; gzip on;
gzip_comp_level 2;
gzip_min_length 1000; 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; gunzip on;
client_max_body_size 50000M; client_max_body_size 50000M;
@ -49,11 +60,6 @@ http {
location /api { location /api {
# Compression
gzip_static on;
gzip_min_length 1000;
gzip_comp_level 2;
proxy_buffering off; proxy_buffering off;
proxy_buffer_size 16k; proxy_buffer_size 16k;
proxy_busy_buffers_size 24k; proxy_busy_buffers_size 24k;
@ -76,11 +82,6 @@ http {
location / { location / {
# Compression
gzip_static on;
gzip_min_length 1000;
gzip_comp_level 2;
proxy_buffering off; proxy_buffering off;
proxy_buffer_size 16k; proxy_buffer_size 16k;
proxy_busy_buffers_size 24k; proxy_busy_buffers_size 24k;