added aquarium and mas emergence

This commit is contained in:
2024-11-10 10:58:59 +01:00
parent 64ba429c49
commit b35f19a925
14 changed files with 73 additions and 15 deletions

View File

@ -1,6 +1,6 @@
map $http_accept $webp_suffix {
default "";
"~*webp" ".webp";
default "";
"~*webp" ".webp";
}
server {
@ -8,9 +8,16 @@ server {
listen [::]:80;
server_name localhost;
location ~* \.(?:jpg|jpeg|png|webp)$ {
root /usr/share/nginx/html;
try_files $uri$webp_suffix $uri = 404;
location ~* ^/.+\.(jpg|jpeg|png|gif)$ {
root /usr/share/nginx/html;
# BEGIN Browser Caching of WebP
expires 180d;
add_header Pragma "public";
add_header Cache-Control "public";
# END Browser Caching of WebP
add_header Vary Accept;
try_files $uri$webp_suffix $uri =404;
}
location / {
@ -22,13 +29,12 @@ server {
location = /404.html {
root /usr/share/nginx/html;
}
# Caching headers
# location ~* \.(?:ico|css|js|gif|jpe?g|png)$ {
# expires 30d;
# add_header Pragma public;
# add_header Cache-Control "public";
# }
# Browser Caching
location ~* \.(css|js|ico|gif|jpeg|jpg|webp|png|svg|eot|otf|woff|woff2|ttf|ogg)$ {
expires 180d;
add_header Pragma "public";
add_header Cache-Control "public";
}
gzip on;
gzip_comp_level 4;