Use sci-hub.tw as default DOI resolver
All checks were successful
continuous-integration/drone/push Build is passing
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:
parent
f52047ae5f
commit
1524f77648
|
@ -19,6 +19,7 @@ RUN apk add --no-cache --virtual .build \
|
||||||
|
|
||||||
WORKDIR /searx
|
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"]
|
ENTRYPOINT ["tini", "--", "gunicorn", "searx.webapp", "--bind", "[::]:8000", "-w", "4"]
|
||||||
|
|
Reference in a new issue