mirror of
https://github.com/hoellen/docker-nextcloud.git
synced 2025-04-19 12:09:21 +00:00
Merge pull request #43 from blinkiz/patch-1
Fix delivery of woff2 file in nginx
This commit is contained in:
commit
074e8a28d6
@ -58,7 +58,7 @@ server {
|
|||||||
index index.php;
|
index index.php;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(?:css|js)$ {
|
location ~* \.(?:css|js|woff2?|svg|gif)$ {
|
||||||
try_files $uri /index.php$uri$is_args$args;
|
try_files $uri /index.php$uri$is_args$args;
|
||||||
add_header Cache-Control "public, max-age=7200";
|
add_header Cache-Control "public, max-age=7200";
|
||||||
add_header Strict-Transport-Security "max-age=15768000; includeSubDomains; preload;";
|
add_header Strict-Transport-Security "max-age=15768000; includeSubDomains; preload;";
|
||||||
@ -71,7 +71,7 @@ server {
|
|||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(?:svg|gif|png|html|ttf|woff|ico|jpg|jpeg)$ {
|
location ~* \.(?:png|html|ttf|ico|jpg|jpeg)$ {
|
||||||
try_files $uri /index.php$uri$is_args$args;
|
try_files $uri /index.php$uri$is_args$args;
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user