diff options
author | Markus Heiser <markus.heiser@darmarit.de> | 2020-04-28 16:21:45 +0200 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarit.de> | 2020-04-28 16:21:45 +0200 |
commit | ea3255835a259516c7a8b62eb319a338cebf7e9f (patch) | |
tree | 55cd99af01fd79317b6d118a0584b2e5d0e7b544 /utils/searx.sh | |
parent | 26a3a7d52359075bb96b39b26ed60430f2c667b9 (diff) | |
download | searxng-ea3255835a259516c7a8b62eb319a338cebf7e9f.tar.gz searxng-ea3255835a259516c7a8b62eb319a338cebf7e9f.zip |
utils/morty.sh: set morty key to avoid service abuse
- https://github.com/asciimoo/searx/issues/1871#issuecomment-592459798
make install all
generates random MORTY_KEY, install service with that key and sets option in the
searx settingy.yml file.
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'utils/searx.sh')
-rwxr-xr-x | utils/searx.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/searx.sh b/utils/searx.sh index 48521f606..7013ec750 100755 --- a/utils/searx.sh +++ b/utils/searx.sh @@ -584,7 +584,7 @@ set_result_proxy() { # usage: set_result_proxy <URL> [<key>] - info_msg "try to set result proxy: $1" + info_msg "try to set result proxy: '$1' ($2)" cp "${SEARX_SETTINGS_PATH}" "${SEARX_SETTINGS_PATH}.bak" _set_result_proxy "$1" "$2" > "${SEARX_SETTINGS_PATH}" } @@ -593,7 +593,7 @@ _set_result_proxy() { local line local stage=0 local url=" url: $1" - local key=" key: $2" + local key=" key: !!binary \"$2\"" if [[ -z $2 ]]; then key= fi |