Use sci-hub.tw as default DOI resolver
continuous-integration/drone/push Build is passing Details

I don’t know why they let you configure the default DOI resolver but
fail if you don’t use oadoi.org
master
Simon Bruder 2019-08-02 14:17:45 +00:00
parent f52047ae5f
commit 1524f77648
No known key found for this signature in database
GPG Key ID: 6F03E0000CC5B62F
1 changed files with 2 additions and 1 deletions

View File

@ -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"]