From 91fb8a197772ae409a2c2bc60dd210cf35b40652 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Sza=C5=82owski?= Date: Tue, 18 Mar 2025 11:53:58 +0100 Subject: [PATCH] chore: remove duplicated brotli directive --- govtool/frontend/Dockerfile | 8 -------- govtool/frontend/Dockerfile.qovery | 8 -------- govtool/frontend/nginx.conf | 2 ++ 3 files changed, 2 insertions(+), 16 deletions(-) diff --git a/govtool/frontend/Dockerfile b/govtool/frontend/Dockerfile index 99ded6d81..026432cfe 100644 --- a/govtool/frontend/Dockerfile +++ b/govtool/frontend/Dockerfile @@ -53,13 +53,5 @@ EXPOSE 80 COPY nginx.conf /etc/nginx/conf.d/default.conf -RUN echo '\ -# Brotli configuration\n\ -brotli on;\n\ -brotli_comp_level 6;\n\ -brotli_static on;\n\ -brotli_types text/plain text/css application/javascript application/json image/svg+xml application/xml+rss text/javascript;\n\ -' > /etc/nginx/conf.d/brotli.conf - COPY --from=builder /src/maintenance-page/index.html /usr/share/nginx/html/maintenance.html COPY --from=builder /src/dist /usr/share/nginx/html diff --git a/govtool/frontend/Dockerfile.qovery b/govtool/frontend/Dockerfile.qovery index 7f6bf11f0..715838ec8 100644 --- a/govtool/frontend/Dockerfile.qovery +++ b/govtool/frontend/Dockerfile.qovery @@ -36,13 +36,5 @@ EXPOSE 80 COPY nginx.conf /etc/nginx/conf.d/default.conf -RUN echo '\ -# Brotli configuration\n\ -brotli on;\n\ -brotli_comp_level 6;\n\ -brotli_static on;\n\ -brotli_types text/plain text/css application/javascript application/json image/svg+xml application/xml+rss text/javascript;\n\ -' > /etc/nginx/conf.d/brotli.conf - COPY --from=builder /src/maintenance-page/index.html /usr/share/nginx/html/maintenance.html COPY --from=builder /src/dist /usr/share/nginx/html diff --git a/govtool/frontend/nginx.conf b/govtool/frontend/nginx.conf index 8c79f024e..a6e3831b2 100644 --- a/govtool/frontend/nginx.conf +++ b/govtool/frontend/nginx.conf @@ -16,6 +16,8 @@ server { expires 1y; add_header Cache-Control "public, max-age=31536000, immutable"; try_files $uri =404; + + brotli_static on; types { application/javascript js;