Use sci-hub.tw as default DOI resolver
All checks were successful
continuous-integration/drone/push Build is passing

I don’t know why they let you configure the default DOI resolver but
fail if you don’t use oadoi.org
This commit is contained in:
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

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