port magic

This commit is contained in:
Gerg-L 2025-03-02 22:49:05 -05:00
parent 7dad855bd8
commit c7c87ec8b2
Signed by: gerg-l
SSH key fingerprint: SHA256:FPYDHIkvMocr4wdmZXpgpJjsb2Tw6rASs2ISPbOb0KI
8 changed files with 144 additions and 73 deletions

View file

@ -1,5 +1,10 @@
{ config, pkgs }:
let
link = config.local.links.searx;
in
{
local.links.searx = { };
sops.secrets.searxngenv = { };
users.users.${config.services.nginx.user}.extraGroups = [ "searx" ];
services.searx = {
@ -7,8 +12,7 @@
package = pkgs.searxng;
runInUwsgi = true;
uwsgiConfig = {
socket = "/run/searx/searx.sock";
chmod-socket = "660";
http = link.tuple;
disable-logging = true;
};
environmentFile = config.sops.secrets.searxngenv.path;
@ -37,7 +41,7 @@
};
local.nginx.defaultVhosts."search.gerg-l.com" = {
locations."/".extraConfig = "uwsgi_pass unix:${config.services.searx.uwsgiConfig.socket};";
locations."/".proxyPass = link.url;
extraConfig = "access_log off;";
};
}