nixos/searx: improve searxng compatibility

This commit is contained in:
Sandro Jäckel 2022-07-17 21:45:30 +02:00
parent c490f57e18
commit 3920bb41f2
No known key found for this signature in database
GPG key ID: 3AF5A43A3EECC2E5

View file

@ -143,6 +143,7 @@ in
disable-logging = true; disable-logging = true;
http = ":8080"; # serve via HTTP... http = ":8080"; # serve via HTTP...
socket = "/run/searx/searx.sock"; # ...or UNIX socket socket = "/run/searx/searx.sock"; # ...or UNIX socket
chmod-socket = "660"; # allow the searx group to read/write to the socket
} }
''; '';
description = '' description = ''
@ -220,7 +221,12 @@ in
lazy-apps = true; lazy-apps = true;
enable-threads = true; enable-threads = true;
module = "searx.webapp"; module = "searx.webapp";
env = [ "SEARX_SETTINGS_PATH=${cfg.settingsFile}" ]; env = [
"SEARX_SETTINGS_PATH=${cfg.settingsFile}"
# searxng compatiblity https://github.com/searxng/searxng/issues/1519
"SEARXNG_SETTINGS_PATH=${cfg.settingsFile}"
];
buffer-size = 32768;
pythonPackages = self: [ cfg.package ]; pythonPackages = self: [ cfg.package ];
} // cfg.uwsgiConfig; } // cfg.uwsgiConfig;
}; };