Drop whoogle, up searxng
This commit is contained in:
parent
60d30ec836
commit
f899473315
3 changed files with 26 additions and 3 deletions
22
hosts/servers/alexandria/searx.nix
Normal file
22
hosts/servers/alexandria/searx.nix
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{ inputs, config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
services = {
|
||||
searx = {
|
||||
enable = true;
|
||||
package = pkgs.searxng;
|
||||
settings.server = {
|
||||
port = lib.toInt "${config.ports.shiori}";
|
||||
bind_address = "0.0.0.0";
|
||||
secret_key = "&yEf!xLA@y3FdJ5BjKnUnNAkqer$iW!9";
|
||||
};
|
||||
};
|
||||
|
||||
nginx.virtualHosts."searx.baduhai.me" = {
|
||||
useACMEHost = "baduhai.me";
|
||||
forceSSL = true;
|
||||
kTLS = true;
|
||||
locations."/".proxyPass = "http://127.0.0.1:${config.ports.searx}";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue