From 3d125e940f4af7489fdefee52fcd292593a6fdb6 Mon Sep 17 00:00:00 2001 From: lebaudantoine Date: Wed, 29 Apr 2026 23:47:04 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9(frontend)=20rename=20Nginx=20confi?= =?UTF-8?q?g=20to=20override=20default=20configuration?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Rename the configuration file to `default.conf` so it replaces the default config bundled in the Nginx image. Handles properly 404 path. --- docker/dinum-frontend/Dockerfile | 2 +- docker/dinum-frontend/nginx/{dinum.conf => default.conf} | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) rename docker/dinum-frontend/nginx/{dinum.conf => default.conf} (97%) diff --git a/docker/dinum-frontend/Dockerfile b/docker/dinum-frontend/Dockerfile index 20e2b28e..a0fc41d4 100644 --- a/docker/dinum-frontend/Dockerfile +++ b/docker/dinum-frontend/Dockerfile @@ -79,7 +79,7 @@ COPY --from=addons-builder \ /home/addons/outlook/dist \ /usr/share/nginx/html/addons/outlook -COPY ./docker/dinum-frontend/nginx/dinum.conf /etc/nginx/conf.d +COPY ./docker/dinum-frontend/nginx/default.conf /etc/nginx/conf.d COPY ./docker/files/usr/local/bin/entrypoint /usr/local/bin/entrypoint ENTRYPOINT [ "/usr/local/bin/entrypoint" ] diff --git a/docker/dinum-frontend/nginx/dinum.conf b/docker/dinum-frontend/nginx/default.conf similarity index 97% rename from docker/dinum-frontend/nginx/dinum.conf rename to docker/dinum-frontend/nginx/default.conf index 6ef89f00..bbb05726 100644 --- a/docker/dinum-frontend/nginx/dinum.conf +++ b/docker/dinum-frontend/nginx/default.conf @@ -5,8 +5,6 @@ server { root /usr/share/nginx/html; - include /etc/nginx/extra/*.conf; - location = /.well-known/windows-app-web-link { default_type application/json; alias /usr/share/nginx/html/.well-known/windows-app-web-link; @@ -33,6 +31,7 @@ server { location ~ ^/addons/outlook(/.*)?$ { alias /usr/share/nginx/html/addons/outlook$1; + error_page 404 =200 /index.html; add_header Cache-Control "no-cache, no-store, must-revalidate"; add_header Pragma "no-cache" always; add_header Expires 0 always; @@ -53,7 +52,6 @@ server { sub_filter 'NONCE_PLACEHOLDER' $nonce; sub_filter_once off; - sub_filter_types text/html; } # Serve static files with caching