nginx - Add asset_immutable var from nextcloud fpm example
This commit is contained in:
parent
39a5ca3f9a
commit
8060227475
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user