From 7ef89191bef1eda954ed99a8e899327f7c42872f Mon Sep 17 00:00:00 2001 From: Martin Raifer Date: Fri, 30 Aug 2024 00:34:08 +0200 Subject: [PATCH] location-specific config does not seem to work --- Dockerfile.prod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile.prod b/Dockerfile.prod index 056633a..6d8313e 100644 --- a/Dockerfile.prod +++ b/Dockerfile.prod @@ -41,7 +41,7 @@ RUN echo "gzip_static on; gzip_proxied any;" >/etc/nginx/conf.d/gzip_static.conf # brotli_static not yet available in standard nginx distribution # RUN echo "brotli_static on; brotli_proxied any;" >/etc/nginx/conf.d/brotli_static.conf # Allow CORS requests -RUN echo "server { location /talks.json { add_header 'Access-Control-Allow-Origin' '*' always; } }" >/etc/nginx/conf.d/cors.conf +RUN echo "add_header 'Access-Control-Allow-Origin' '*' always;" >/etc/nginx/conf.d/cors.conf # Copy built site from build stage COPY --from=build /app/_site /usr/share/nginx/html