diff --git a/configs/robots.conf b/configs/robots.conf index 74e7286..aa90329 100644 --- a/configs/robots.conf +++ b/configs/robots.conf @@ -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 diff --git a/configs/upstreams.conf b/configs/upstreams.conf index b13df51..ecf03bd 100644 --- a/configs/upstreams.conf +++ b/configs/upstreams.conf @@ -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; diff --git a/http.d/nitter.conf b/http.d/nitter.conf new file mode 100644 index 0000000..c41fb7d --- /dev/null +++ b/http.d/nitter.conf @@ -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; + } +}