From 1524f776483be2bb479b9778744c3b164faf7057 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Fri, 2 Aug 2019 14:17:45 +0000 Subject: [PATCH] Use sci-hub.tw as default DOI resolver MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I don’t know why they let you configure the default DOI resolver but fail if you don’t use oadoi.org --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 7cb52a8..14ffdda 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,6 +19,7 @@ RUN apk add --no-cache --virtual .build \ WORKDIR /searx -RUN sed -i -e 's/default_on = False/default_on = True/' searx/plugins/oa_doi_rewrite.py +RUN sed -i -e 's/default_on = False/default_on = True/' searx/plugins/oa_doi_rewrite.py \ + && sed -i -e 's/oadoi.org/sci-hub.tw/' searx/preferences.py ENTRYPOINT ["tini", "--", "gunicorn", "searx.webapp", "--bind", "[::]:8000", "-w", "4"]