mirror of
https://github.com/searxng/searxng.git
synced 2024-11-23 04:27:46 +01:00
ea3255835a
- 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>
30 lines
697 B
Desktop File
30 lines
697 B
Desktop File
[Unit]
|
|
|
|
Description=${SERVICE_NAME}
|
|
After=syslog.target
|
|
After=network.target
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
|
User=${SERVICE_USER}
|
|
Group=${SERVICE_GROUP}
|
|
WorkingDirectory=${SERVICE_HOME}
|
|
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}
|
|
|
|
# Some distributions may not support these hardening directives. If you cannot
|
|
# start the service due to an unknown option, comment out the ones not supported
|
|
# by your version of systemd.
|
|
|
|
ProtectSystem=full
|
|
PrivateDevices=yes
|
|
PrivateTmp=yes
|
|
NoNewPrivileges=true
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|