浏览代码

Добавлена настройка прокси для flibusta.is

Book Pauk 4 年之前
父节点
当前提交
0690a365da
共有 1 个文件被更改,包括 33 次插入0 次删除
  1. 33 0
      docs/liberama.top/liberama

+ 33 - 0
docs/liberama.top/liberama

@@ -42,3 +42,36 @@ server {
 
 
   return 301 https://$host$request_uri;
   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 "";
+  }
+}