Skip to content

Commit

Permalink
location-specific config does not seem to work
Browse files Browse the repository at this point in the history
  • Loading branch information
tyrasd authored Aug 29, 2024
1 parent 4b8a4df commit 7ef8919
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile.prod
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7ef8919

Please sign in to comment.