nginx: add more extensions to the static asset pattern
This commit is contained in:
parent
ccb628f516
commit
54540f8faf
1 changed files with 1 additions and 1 deletions
|
|
@ -5,7 +5,7 @@ server {
|
||||||
root /usr/share/nginx/html;
|
root /usr/share/nginx/html;
|
||||||
index index.html;
|
index index.html;
|
||||||
|
|
||||||
location ~* \.(?:css|js|mjs|map|json|wasm|mp3|flac|png|jpg|jpeg|svg|webp|ico|gz|br)$ {
|
location ~* \.(?:css|js|mjs|map|json|wasm|mp3|flac|wav|ogg|png|jpg|jpeg|svg|webp|ico|gz|br|utf|ttf|woff2?)$ {
|
||||||
try_files $uri =404;
|
try_files $uri =404;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue