fix: Searx is running

This commit is contained in:
Benjamin Bädorf 2023-10-29 23:49:45 +01:00
parent a7b3490c15
commit 1db27813dd
No known key found for this signature in database
GPG key ID: 1B7BF5B77A521346

View file

@ -15,18 +15,20 @@
enableACME = true; enableACME = true;
forceSSL = true; forceSSL = true;
locations."/".proxyPass = "http://unix:/run/searx/searx.socket"; locations."/".extraConfig = ''
uwsgi_pass unix:/run/searx/searx.sock;
'';
}; };
users.users.nginx.extraGroups = [ "searx" ]; users.users.nginx.extraGroups = [ "searx" ];
services.searx = { services.searx = {
enable = true; enable = true;
package = pkgs.searxng;
runInUwsgi = true; runInUwsgi = true;
package = searxng;
uwsgiConfig = { uwsgiConfig = {
disable-logging = true; disable-logging = false;
socket = "/run/searx/searx.sock"; socket = "/run/searx/searx.sock";
chmod-socket = "660"; chmod-socket = "660";
}; };
@ -34,29 +36,40 @@
environmentFile = config.age.secrets.searx-environment.path; environmentFile = config.age.secrets.searx-environment.path;
settings = { settings = {
use_default_settings: true; use_default_settings = true;
server.secret_key = "@SEARX_SECRET_KEY@";
server = {
base_url = "https://search.pub.solar";
secret_key = "@SEARX_SECRET_KEY@";
};
general = { general = {
debug = false;
instance_name = "search.pub.solar"; instance_name = "search.pub.solar";
privacypolicy_url: "https://pub.solar/privacy"; privacypolicy_url = "https://pub.solar/privacy";
# use true to use your own donation page written in searx/info/en/donate.md # use true to use your own donation page written in searx/info/en/donate.md
# use false to disable the donation link # use false to disable the donation link
donation_url: false donation_url = false;
# mailto:contact@example.com # mailto:contact@example.com
contact_url: false contact_url = false;
enable_metrics: false enable_metrics = false;
}; };
search = { search = {
# Existing autocomplete backends: "dbpedia", "duckduckgo", "google", "yandex", "mwmbl", # Existing autocomplete backends: "dbpedia", "duckduckgo", "google", "yandex", "mwmbl",
# "seznam", "startpage", "swisscows", "qwant", "wikipedia" - leave blank to turn it off # "seznam", "startpage", "swisscows", "qwant", "wikipedia" - leave blank to turn it off
# by default. # by default.
autocomplete: "duckduckgo" autocomplete = "duckduckgo";
# minimun characters to type before autocompleter starts # minimun characters to type before autocompleter starts
autocomplete_min: 4 autocomplete_min = 4;
}; };
engine = [
{ engine = "startpage"; disabled = false; }
{ engine = "yahoo"; disabled = false; }
{ engine = "tagesschau"; disabled = false; }
];
ui = { ui = {
# query_in_title: When true, the result page's titles contains the query # query_in_title: When true, the result page's titles contains the query
# it decreases the privacy, since the browser can records the page titles. # it decreases the privacy, since the browser can records the page titles.