From 87dbd0ba4499f0c82f7b668c737f08d1110b7d68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Murat=20O=CC=88zkorkmaz?= Date: Thu, 13 Nov 2025 20:16:21 +0100 Subject: [PATCH] Fixing logos --- docker/Dockerfile | 3 +++ docker/nginx.conf | 8 ++++++++ 2 files changed, 11 insertions(+) diff --git a/docker/Dockerfile b/docker/Dockerfile index eccf1ea..37005e3 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -37,6 +37,9 @@ COPY docker/nginx.conf /etc/nginx/nginx.conf # Copy the static build output from the build stage to Nginx's default HTML serving directory COPY --chown=nginx:nginx --from=builder /app/dist/*/browser /usr/share/nginx/html +# Copy logos from public folder to root for direct access (needed for i18n builds) +COPY --chown=nginx:nginx --from=builder /app/public/logo-*.png /usr/share/nginx/html/ + # Expose port 8080 to allow HTTP traffic # Note: The default NGINX container now listens on port 8080 instead of 80 EXPOSE 8080 diff --git a/docker/nginx.conf b/docker/nginx.conf index d072296..f005e46 100644 --- a/docker/nginx.conf +++ b/docker/nginx.conf @@ -53,6 +53,14 @@ http { return 301 $scheme://$http_host/de/; } + # Serve logos directly from root (needed for i18n builds) + location ~ ^/logo-(dark|light)\.png$ { + try_files $uri =404; + expires 1y; + access_log off; + add_header Cache-Control "public, immutable"; + } + # Serve each locale location ~ ^/(de|de-DE|en)/ { try_files $uri $uri/ /$1/index.html; -- 2.49.1