2022-06-16 10:54:48 +02:00
|
|
|
server {
|
|
|
|
listen 80;
|
|
|
|
server_name localhost;
|
|
|
|
|
|
|
|
gzip on;
|
|
|
|
gzip_types text/plain application/xml;
|
|
|
|
|
|
|
|
location / {
|
|
|
|
root /usr/share/nginx/html;
|
|
|
|
index index.html index.htm;
|
|
|
|
}
|
|
|
|
|
|
|
|
location ~*.(js|css|ico)$ {
|
|
|
|
root /usr/share/nginx/html;
|
|
|
|
expires 2d;
|
|
|
|
add_header Cache-Control "public, no-transform";
|
|
|
|
}
|
|
|
|
|
2022-06-16 10:58:15 +02:00
|
|
|
location ~*.(ttf|png|jpg|jpeg|gif|svg|webp)$ {
|
2022-06-16 10:54:48 +02:00
|
|
|
root /usr/share/nginx/html;
|
|
|
|
expires 1y;
|
|
|
|
add_header Cache-Control "public, no-transform";
|
|
|
|
}
|
2022-06-23 14:01:35 +02:00
|
|
|
|
|
|
|
location /.well-known/webfinger {
|
|
|
|
return 301 https://mastodon.louis-vallat.xyz$request_uri;
|
|
|
|
}
|
2022-06-16 10:54:48 +02:00
|
|
|
}
|