FEATURE: add hook and asset path variable
This commit is contained in:
parent
482578ba26
commit
2640b4e173
|
@ -111,12 +111,13 @@ server {
|
|||
break;
|
||||
}
|
||||
|
||||
location ~ ^/assets/ {
|
||||
location ~ ^/assets/(?<asset_path>.+)$ {
|
||||
expires 1y;
|
||||
# asset pipeline enables this
|
||||
# brotli_static on;
|
||||
gzip_static on;
|
||||
add_header Cache-Control public,immutable;
|
||||
# HOOK in asset location (used for extensibility)
|
||||
# TODO I don't think this break is needed, it just breaks out of rewrite
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue