moved section

This commit is contained in:
Steffen Illium 2024-11-10 17:50:01 +01:00
parent c6241441bd
commit 58766c810a

View File

@ -1,9 +1,3 @@
server {
listen 80;
listen [::]:80;
server_name localhost;
# Check if client is capable of handling webp
map $http_accept $webp_suffix {
default "";
@ -15,6 +9,11 @@ server {
~*^/(images)/(.+)\.(jpe?g|png)$ /$1/$2;
}
server {
listen 80;
listen [::]:80;
server_name localhost;
location ~* ^/.+\.(jpg|jpeg|png)$ {
root /usr/share/nginx/html;
# BEGIN Browser Caching of WebP