backup and stuff

This commit is contained in:
bee
2026-06-12 15:14:27 +02:00
parent c0ae209a9d
commit fa1231d1f8
4 changed files with 59 additions and 2 deletions
+9 -1
View File
@@ -1,5 +1,10 @@
limit_req_zone $binary_remote_addr zone=mylimit:10m rate=10r/s;
map $http_user_agent $link_preview_bot {
default 0;
"~*(Discordbot|Twitterbot|facebookexternalhit|Facebot|Slackbot|TelegramBot|WhatsApp|LinkedInBot|Pinterest|redditbot|Iframely|vkShare|SkypeUriPreview|Mastodon|Googlebot|bingbot)" 1;
}
server {
listen 80 default_server;
server_name secretbee.buzz;
@@ -50,7 +55,10 @@ server {
try_files $uri $uri.html $uri/index.html index.html;
}
location /siri {
location = /siri {
if ($link_preview_bot) {
rewrite ^ /siri.html last;
}
return 301 https://gallery.secretbee.buzz/s/siri;
}
}