From 3c4a165c46823a6d71336f992a4dc82a5ce937fc Mon Sep 17 00:00:00 2001 From: Bastian Date: Fri, 29 Mar 2024 10:54:25 +0100 Subject: [PATCH] fix up nginx --- Dockerfile | 4 +++- nginx.conf | 11 +++++++---- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5641b92..54e9fbf 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,4 +9,6 @@ RUN npm run build FROM ratisbonacoding/nginx-cloudflare-cache COPY --from=build /app/build /usr/share/nginx/html -COPY nginx.conf /etc/nginx/nginx.conf \ No newline at end of file +COPY nginx.conf /etc/nginx/nginx.conf + +EXPOSE 8080 \ No newline at end of file diff --git a/nginx.conf b/nginx.conf index 13ed86a..96fee54 100644 --- a/nginx.conf +++ b/nginx.conf @@ -19,7 +19,7 @@ http { error_log /dev/null; server { - server_name ratisbona-coding.org; + server_name hackaburg.de hackaburg.org; listen 8080; add_header Cache-Control "public, max-age=1382400, immutable"; @@ -27,8 +27,11 @@ http { location / { root /usr/share/nginx/html; index index.html index.htm; - try_files $uri $uri/ /index.html; } - } -} + location /SecretRabbitMeetingBeTheChange { + alias /usr/share/nginx/html/; + index index.html index.htm; + } + } +} \ No newline at end of file