dotfiles/nixos/boxes/mb1/search.nix

35 lines
877 B
Nix
Raw Normal View History

2023-08-13 17:00:41 +01:00
{
config,
pkgs,
...
}: {
imports = [../nginx.nix];
2023-05-20 17:26:09 +01:00
virtualisation.oci-containers.containers.searxng = {
2023-08-13 17:00:41 +01:00
image = "searxng/searxng@sha256:650c0b183a129e10c2493126bb27c3541ffebbead6e0255fab91831457211b06";
volumes = [];
environment = {BASE_URL = "https://search.cyplo.dev";};
ports = ["9999:8080"];
2023-05-20 17:26:09 +01:00
};
2021-10-30 11:10:19 +01:00
services.nginx = {
virtualHosts = {
"search.cyplo.dev" = {
forceSSL = true;
enableACME = true;
extraConfig = ''
access_log /dev/null;
2023-05-08 17:08:49 +01:00
proxy_connect_timeout 90s;
proxy_send_timeout 90s;
proxy_read_timeout 90s;
proxy_busy_buffers_size 512k;
proxy_buffers 4 512k;
proxy_buffer_size 256k;
2021-10-30 11:10:19 +01:00
'';
2023-05-08 17:08:49 +01:00
locations."/" = {
2023-05-20 17:26:09 +01:00
proxyPass = "http://127.0.0.1:9999";
2023-05-08 17:08:49 +01:00
proxyWebsockets = true;
};
2021-10-30 11:10:19 +01:00
};
};
};
}