add nitter configuration

This commit is contained in:
Fijxu 2025-02-12 18:49:57 -03:00
parent 24b888d8e3
commit 3d33dac9e7
Signed by: Fijxu
GPG key ID: 32C1DDF333EDA6A4
3 changed files with 25 additions and 18 deletions

View file

@ -4,32 +4,14 @@ if ($http_user_agent ~* "(AdsBot-Google|Amazonbot|anthropic-ai|Applebot|Applebot
location /robots.txt { return 200 "
User-agent: AhrefsBot
Disallow: /
User-agent: dotbot
Disallow: /
User-agent: SiteAuditBot
Disallow: /
User-agent: SemrushBot-BA
Disallow: /
User-agent: SemrushBot-SI
Disallow: /
User-agent: SemrushBot-SWA
Disallow: /
User-agent: SemrushBot-CT
Disallow: /
User-agent: SplitSignalBot
Disallow: /
User-agent: SemrushBot-COUB
Disallow: /
User-agent: AdsBot-Google
User-agent: Amazonbot
User-agent: anthropic-ai

View file

@ -57,6 +57,11 @@ upstream redlib {
server 127.0.0.1:10006;
}
upstream nitter {
keepalive 128;
server 127.0.0.1:10009;
}
upstream breezewiki {
keepalive 16;
server 127.0.0.1:10007;

20
http.d/nitter.conf Normal file
View file

@ -0,0 +1,20 @@
server {
server_name
nitter.nadeko.net
nitter.nadekonw7plitnjuawu6ytjsl7jlglk2t6pyq6eftptmiv3dvqndwvyd.onion;
include configs/listen.conf;
include configs/general.conf;
# Security headers are added by redlib!
#include configs/security.conf;
include configs/robotsNone.conf;
location / {
if ($blocked_agent = 1) {
return 200 "
1. The Industrial Revolution and its consequences have been a disaster for the human race. They have greatly increased the life-expectancy of those of us who live in “advanced” countries, but they have destabilized society, have made life unfulfilling, have subjected human beings to indignities, have led to widespread psychological suffering (in the Third World to physical suffering as well) and have inflicted severe damage on the natural world. The continued development of technology will worsen the situation. It will certainly subject human beings to greater indignities and inflict greater damage on the natural world, it will probably lead to greater social disruption and psychological suffering, and it may lead to increased physical suffering even in “advanced” countries.
";
}
proxy_pass http://nitter;
include configs/proxy.conf;
}
}