mirror of
https://github.com/searxng/searxng.git
synced 2026-07-25 17:31:23 +00:00
Compare commits
2 Commits
c980fa1efc
...
7adace694c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7adace694c | ||
|
|
e92f6b70a0 |
@@ -119,8 +119,12 @@ ${fedora_build}
|
||||
pip install -U pip
|
||||
pip install -U setuptools
|
||||
pip install -U wheel
|
||||
|
||||
# additional packages required for installation
|
||||
pip install -U pyyaml
|
||||
pip install -U msgspec
|
||||
pip install -U typing-extensions
|
||||
pip install -U pybind11
|
||||
|
||||
# jump to SearXNG's working tree and install SearXNG into virtualenv
|
||||
(${SERVICE_USER})$ cd \"$SEARXNG_SRC\"
|
||||
|
||||
@@ -379,6 +379,12 @@ def request(query: str, params: "OnlineParams") -> None:
|
||||
# The vqd value is generated from the query and the UA header. To be able to
|
||||
# reuse the vqd value, the UA header must be static.
|
||||
headers["User-Agent"] = _HTTP_User_Agent
|
||||
|
||||
headers["Sec-Fetch-Dest"] = "document"
|
||||
headers["Sec-Fetch-Mode"] = "navigate"
|
||||
headers["Sec-Fetch-Site"] = "same-origin"
|
||||
headers["Sec-Fetch-User"] = "?1"
|
||||
|
||||
headers["Referer"] = "https://html.duckduckgo.com/"
|
||||
|
||||
ui_lang = params["searxng_locale"]
|
||||
|
||||
@@ -556,6 +556,8 @@ pip install -U setuptools
|
||||
pip install -U wheel
|
||||
pip install -U pyyaml
|
||||
pip install -U msgspec
|
||||
pip install -U typing-extensions
|
||||
pip install -U pybind11
|
||||
pip install -U --use-pep517 --no-build-isolation -e .
|
||||
EOF
|
||||
rst_para "update instance's settings.yml from ${SEARXNG_SETTINGS_PATH}"
|
||||
|
||||
Reference in New Issue
Block a user