website/nginx.conf
Louis Vallat 5a6c106a91
feat: added well known for mastodon web/local domain integration
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2022-06-23 14:01:35 +02:00

29 lines
647 B
Nginx Configuration File

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";
}
location ~*.(ttf|png|jpg|jpeg|gif|svg|webp)$ {
root /usr/share/nginx/html;
expires 1y;
add_header Cache-Control "public, no-transform";
}
location /.well-known/webfinger {
return 301 https://mastodon.louis-vallat.xyz$request_uri;
}
}