nginx - map directive troubleshooting

This commit is contained in:
Mike Holloway 2025-12-07 18:28:00 -05:00
parent 8060227475
commit 4217f56c49

View File

@ -1,3 +1,3 @@
FROM nginx:latest
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
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 }\n #gzip\ton;/' /etc/nginx/nginx.conf