From 96fb68135e145b922820aeaa4e3988ba7c4f028a Mon Sep 17 00:00:00 2001 From: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com> Date: Sun, 21 May 2023 15:23:46 +0200 Subject: [PATCH] fix(nginx): enable gzip and show error logs (#2504) --- docker/docker-compose.dev.yml | 2 -- docker/docker-compose.yml | 2 -- nginx/templates/default.conf.template | 2 +- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/docker/docker-compose.dev.yml b/docker/docker-compose.dev.yml index 6646c93bd7..68bf031dd0 100644 --- a/docker/docker-compose.dev.yml +++ b/docker/docker-compose.dev.yml @@ -135,8 +135,6 @@ services: dockerfile: Dockerfile ports: - 2283:8080 - logging: - driver: none depends_on: - immich-server restart: always diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index bb2f3f1e73..b00ccf8bc9 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -87,8 +87,6 @@ services: - IMMICH_WEB_URL ports: - 2283:8080 - logging: - driver: none depends_on: - immich-server restart: always diff --git a/nginx/templates/default.conf.template b/nginx/templates/default.conf.template index db5d658603..4eca1bd14a 100644 --- a/nginx/templates/default.conf.template +++ b/nginx/templates/default.conf.template @@ -28,7 +28,7 @@ server { client_max_body_size 50000M; # Compression - gzip off; + gzip on; gzip_comp_level 2; gzip_min_length 1000; gzip_proxied any;