From 0690a365dae7408ea44e7b2ae0621ce8d5e40119 Mon Sep 17 00:00:00 2001 From: Book Pauk Date: Sun, 25 Oct 2020 17:35:53 +0700 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B0=20=D0=BD=D0=B0=D1=81=D1=82=D1=80=D0=BE=D0=B9=D0=BA?= =?UTF-8?q?=D0=B0=20=D0=BF=D1=80=D0=BE=D0=BA=D1=81=D0=B8=20=D0=B4=D0=BB?= =?UTF-8?q?=D1=8F=20flibusta.is?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/liberama.top/liberama | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/docs/liberama.top/liberama b/docs/liberama.top/liberama index b59de4e9..004542fa 100644 --- a/docs/liberama.top/liberama +++ b/docs/liberama.top/liberama @@ -42,3 +42,36 @@ server { return 301 https://$host$request_uri; } + +server { + listen 23480; + server_name flibusta_proxy; + + valid_referers omnireader.ru beta.omnireader.ru liberama.top; + + if ($invalid_referer) { + return 403; + } + + location / { + proxy_pass http://flibusta.is; + proxy_redirect http://static.flibusta.is:443 http://$server_addr:23481; + } +} + + +server { + listen 23481; + server_name flibusta_proxy_static; + + valid_referers omnireader.ru beta.omnireader.ru liberama.top; + + if ($invalid_referer) { + return 403; + } + + location / { + proxy_pass http://static.flibusta.is:443; + proxy_set_header Referer ""; + } +}