move search to bolty
This commit is contained in:
parent
983e13a9be
commit
a72a910f37
3 changed files with 14 additions and 8 deletions
|
@ -15,6 +15,7 @@
|
|||
./tailscale-cert.nix
|
||||
./virtualisation.nix
|
||||
./woodpecker-agent.nix
|
||||
./search.nix
|
||||
];
|
||||
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
|
||||
programs.ccache.enable = true;
|
||||
|
|
12
nixos/boxes/bolty/search.nix
Normal file
12
nixos/boxes/bolty/search.nix
Normal 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" ];
|
||||
};
|
||||
}
|
|
@ -15,18 +15,11 @@
|
|||
proxy_buffer_size 256k;
|
||||
'';
|
||||
locations."/" = {
|
||||
proxyPass = "http://127.0.0.1:8888";
|
||||
proxyPass = "http://bolty:8888";
|
||||
proxyWebsockets = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
virtualisation.oci-containers.containers.searxng = {
|
||||
image =
|
||||
"searxng/searxng@sha256:650c0b183a129e10c2493126bb27c3541ffebbead6e0255fab91831457211b06";
|
||||
volumes = [ ];
|
||||
environment = { BASE_URL = "https://search.cyplo.dev"; };
|
||||
ports = [ "8888:8080" ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue