From 40ff572f94bbe48ddd261889c872bd1b2f8da81c Mon Sep 17 00:00:00 2001 From: Book Pauk Date: Sat, 14 Nov 2020 11:48:03 +0700 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20?= =?UTF-8?q?=D0=BF=D1=80=D0=BE=D0=BA=D1=81=D0=B8=D1=80=D0=BE=D0=B2=D0=B0?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D0=B4=D0=BB=D1=8F=20fantasy-worlds.org?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/components/ExternalLibs/ExternalLibs.vue | 1 + client/store/modules/reader.js | 6 +++--- docs/liberama.top/liberama | 15 +++++++++++++++ 3 files changed, 19 insertions(+), 3 deletions(-) diff --git a/client/components/ExternalLibs/ExternalLibs.vue b/client/components/ExternalLibs/ExternalLibs.vue index 75995b55..9054a401 100644 --- a/client/components/ExternalLibs/ExternalLibs.vue +++ b/client/components/ExternalLibs/ExternalLibs.vue @@ -159,6 +159,7 @@ import * as lu from './linkUtils'; const proxySubst = { 'http://flibusta.is': 'http://b.liberama.top:23480', + 'http://fantasy-worlds.org': 'http://b.liberama.top:23580', }; export default @Component({ diff --git a/client/store/modules/reader.js b/client/store/modules/reader.js index d217e9e7..59eb206c 100644 --- a/client/store/modules/reader.js +++ b/client/store/modules/reader.js @@ -297,15 +297,15 @@ const libsDefaults = { {r: 'https://flibs.in', s: 'https://flibs.in', list: [ {l: 'https://flibs.in', c: 'Flibs'}, ]}, + {r: 'http://fantasy-worlds.org', s: 'http://fantasy-worlds.org', list: [ + {l: 'http://fantasy-worlds.org', c: 'Миры Фэнтези'}, + ]}, {r: 'http://samlib.ru', s: 'http://samlib.ru', list: [ {l: 'http://samlib.ru', c: 'Журнал "Самиздат"'}, ]}, {r: 'http://lib.ru', s: 'http://lib.ru', list: [ {l: 'http://lib.ru', c: 'Библиотека Максима Мошкова'}, ]}, - {r: 'http://fantasy-worlds.org', s: 'http://fantasy-worlds.org', list: [ - {l: 'http://fantasy-worlds.org', c: 'Миры Фэнтези'}, - ]}, {r: 'https://aldebaran.ru', s: 'https://aldebaran.ru', list: [ {l: 'https://aldebaran.ru', c: 'АЛЬДЕБАРАН | Электронная библиотека книг'}, ]}, diff --git a/docs/liberama.top/liberama b/docs/liberama.top/liberama index 0b909add..ec288a99 100644 --- a/docs/liberama.top/liberama +++ b/docs/liberama.top/liberama @@ -126,3 +126,18 @@ server { proxy_set_header Referer ""; } } + +server { + listen 23580; + server_name fw_proxy; + + valid_referers liberama.top b.liberama.top; + + if ($invalid_referer) { + return 403; + } + + location / { + proxy_pass http://fantasy-worlds.org; + } +}