nginx - Add asset_immutable var from nextcloud fpm example

This commit is contained in:
Mike Holloway 2025-12-07 18:18:52 -05:00
parent 39a5ca3f9a
commit 8060227475

View File

@ -1,3 +1,3 @@
FROM nginx:latest
RUN sed -i 's/\#gzip.*on;/server_tokens\toff;\n #gzip\ton;/' /etc/nginx/nginx.conf
RUN sed -i 's/\#gzip.*on;/server_tokens\toff;\n # Set the `immutable` cache control options only for assets with a cache busting `v` argument\n map $arg_v $asset_immutable {\n "" "";\n default ", immutable";\n }\n #gzip\ton;/' /etc/nginx/nginx.conf