Add searx host

This commit is contained in:
fi 2023-10-16 11:22:48 +02:00
parent 3708003da6
commit 967c771b3e
Signed by: fi
SSH key fingerprint: SHA256:d+6fQoDPMbSFK95zRVflRKZLRKF4cPSQb7VIxYkhFsA
8 changed files with 101 additions and 0 deletions

View file

@ -0,0 +1,29 @@
{ config, ... }:
{
services.nginx = {
enable = true;
virtualHosts."searx.nekover.se" = {
forceSSL = true;
enableACME = true;
listen = [
{
addr = "0.0.0.0";
port = 80;
}
{
addr = "0.0.0.0";
port = 8443;
ssl = true;
extraParameters = [ "proxy_protocol" ];
}
];
locations."/" = {
proxyPass = "http://${config.services.searx.settings.server.bind_address}:${builtins.toString config.services.searx.settings.server.port}";
};
extraConfig = ''
set_real_ip_from 10.202.41.100;
real_ip_header proxy_protocol;
'';
};
};
}