move search to bolty

This commit is contained in:
Cyryl Płotnicki 2023-05-08 18:27:49 +01:00
parent 983e13a9be
commit a72a910f37
3 changed files with 14 additions and 8 deletions

View file

@ -15,6 +15,7 @@
./tailscale-cert.nix ./tailscale-cert.nix
./virtualisation.nix ./virtualisation.nix
./woodpecker-agent.nix ./woodpecker-agent.nix
./search.nix
]; ];
boot.binfmt.emulatedSystems = [ "aarch64-linux" ]; boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
programs.ccache.enable = true; programs.ccache.enable = true;

View file

@ -0,0 +1,12 @@
{ config, pkgs, ... }: {
imports = [ ../nginx.nix ];
networking.firewall.allowedTCPPorts = [ 8888 ];
virtualisation.oci-containers.containers.searxng = {
image =
"searxng/searxng@sha256:650c0b183a129e10c2493126bb27c3541ffebbead6e0255fab91831457211b06";
volumes = [ ];
environment = { BASE_URL = "https://search.cyplo.dev"; };
ports = [ "8888:8080" ];
};
}

View file

@ -15,18 +15,11 @@
proxy_buffer_size 256k; proxy_buffer_size 256k;
''; '';
locations."/" = { locations."/" = {
proxyPass = "http://127.0.0.1:8888"; proxyPass = "http://bolty:8888";
proxyWebsockets = true; proxyWebsockets = true;
}; };
}; };
}; };
}; };
virtualisation.oci-containers.containers.searxng = {
image =
"searxng/searxng@sha256:650c0b183a129e10c2493126bb27c3541ffebbead6e0255fab91831457211b06";
volumes = [ ];
environment = { BASE_URL = "https://search.cyplo.dev"; };
ports = [ "8888:8080" ];
};
} }