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/templates | |
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/templates')
-rw-r--r-- | utils/templates/lib/systemd/system/morty.service | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/templates/lib/systemd/system/morty.service b/utils/templates/lib/systemd/system/morty.service index d463c5097..25b676b51 100644 --- a/utils/templates/lib/systemd/system/morty.service +++ b/utils/templates/lib/systemd/system/morty.service @@ -10,7 +10,7 @@ Type=simple User=${SERVICE_USER} Group=${SERVICE_GROUP} WorkingDirectory=${SERVICE_HOME} -ExecStart=${SERVICE_HOME}/go-apps/bin/morty -key '' -listen '${MORTY_LISTEN}' -timeout ${MORTY_TIMEOUT} +ExecStart=${SERVICE_HOME}/go-apps/bin/morty -key '${MORTY_KEY}' -listen '${MORTY_LISTEN}' -timeout ${MORTY_TIMEOUT} Restart=always Environment=USER=${SERVICE_USER} HOME=${SERVICE_HOME} DEBUG=${SERVICE_ENV_DEBUG} |