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