backup and stuff
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user