update searx

This commit is contained in:
zackartz 2024-05-03 15:42:26 -04:00
parent 1310c4c7eb
commit cdb638ef0e
No known key found for this signature in database
GPG key ID: 5B53E53A9A514DBA
2 changed files with 16 additions and 17 deletions

View file

@ -84,20 +84,6 @@
}; };
}; };
services.nginx = {
enable = true;
package = pkgs.nginxStable.override {openssl = pkgs.libressl;};
virtualHosts = {
"search.zackmyers.io" = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://localhost:8080";
};
};
};
};
security.acme = { security.acme = {
acceptTerms = true; acceptTerms = true;
defaults.email = "zach@zacharymyers.com"; defaults.email = "zach@zacharymyers.com";

View file

@ -15,8 +15,21 @@
services.nginx.virtualHosts."search.zackmyers.io" = { services.nginx.virtualHosts."search.zackmyers.io" = {
forceSSL = true; forceSSL = true;
enableACME = true; enableACME = true;
locations."/searx" = { locations."/searx".extraConfig = ''
uwsgiPass = "unix://run/searx/searx.sock"; uwsgi_pass unix:///run/searx/searx.sock;
};
include uwsgi_params;
uwsgi_param HTTP_HOST $host;
uwsgi_param HTTP_CONNECTION $http_connection;
# see flaskfix.py
uwsgi_param HTTP_X_SCHEME $scheme;
uwsgi_param HTTP_X_SCRIPT_NAME /searxng;
# see limiter.py
uwsgi_param HTTP_X_REAL_IP $remote_addr;
uwsgi_param HTTP_X_FORWARDED_FOR $proxy_add_x_forwarded_for;
'';
}; };
} }