2023-09-26 15:03:01 -04:00
|
|
|
# favicon.ico
|
|
|
|
location = /favicon.ico {
|
2023-09-26 15:51:30 -04:00
|
|
|
log_not_found off;
|
2023-09-26 15:03:01 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
# robots.txt
|
|
|
|
location = /robots.txt {
|
2023-09-26 15:51:30 -04:00
|
|
|
log_not_found off;
|
2023-09-26 15:03:01 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
# assets, media
|
|
|
|
location ~* \.(?:css(\.map)?|js(\.map)?|jpe?g|png|gif|ico|cur|heic|webp|tiff?|mp3|m4a|aac|ogg|midi?|wav|mp4|mov|webm|mpe?g|avi|ogv|flv|wmv)$ {
|
2023-09-26 15:51:30 -04:00
|
|
|
expires 7d;
|
2023-09-26 15:03:01 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
# svg, fonts
|
|
|
|
location ~* \.(?:svgz?|ttf|ttc|otf|eot|woff2?)$ {
|
2023-09-26 15:51:30 -04:00
|
|
|
add_header Access-Control-Allow-Origin "*";
|
|
|
|
expires 7d;
|
2023-09-26 15:03:01 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
# gzip
|
2023-09-26 15:51:30 -04:00
|
|
|
gzip on;
|
|
|
|
gzip_vary on;
|
|
|
|
gzip_proxied any;
|
2023-09-26 15:03:01 -04:00
|
|
|
gzip_comp_level 6;
|
2023-09-26 15:51:30 -04:00
|
|
|
gzip_types text/plain text/css text/xml application/json application/javascript application/rss+xml application/atom+xml image/svg+xml;
|