This repository has been archived on 2024-08-30. You can view files and clone it, but cannot push or open issues or pull requests.
infrastructure/hosts/carbon/services/privacy/searxng.nix

37 lines
658 B
Nix
Raw Normal View History

2024-05-29 17:15:20 +02:00
{ pkgs, config, ... }: {
virtualisation.oci-containers.containers = {
searxng = {
image = "docker.io/searxng/searxng:latest";
ports = [
"3345:3000"
];
# TODO implement limiter
#volumes = [
# "/home/carbon/searxng.yml:/etc/searxng:rw"
#];
};
};
services.redis.servers = {
searxng = {
port = 3442;
enable = true;
};
};
services.nginx = {
virtualHosts = {
"librey.${config.networking.domain}" = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = " http://127.0.0.1:3345";
};
};
};
};
}