architect: re-enable searxng
This commit is contained in:
parent
269e736f47
commit
03939c0061
@ -40,7 +40,7 @@ in
|
||||
./keycloak.nix
|
||||
# ./runas.nix
|
||||
./tailscale.nix
|
||||
# ./searx.nix
|
||||
./searx.nix
|
||||
./plex.nix
|
||||
./headscale.nix
|
||||
];
|
||||
|
@ -1,8 +1,7 @@
|
||||
{ mach-nix, lib, config, pkgs, ... }:
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
let
|
||||
domain = "gugol.giugl.io";
|
||||
network = import ./network.nix;
|
||||
domain = "search.giugl.io";
|
||||
in
|
||||
{
|
||||
services = {
|
||||
@ -19,14 +18,14 @@ in
|
||||
};
|
||||
|
||||
general = {
|
||||
instance_name = "Pepe's Gugol";
|
||||
contact_url = "mailto:gugol@depasquale.giugl.io";
|
||||
enable_metrics = false;
|
||||
instance_name = "PepoSearch";
|
||||
contact_url = "mailto:search@depasquale.giugl.io";
|
||||
enable_metrics = true;
|
||||
};
|
||||
|
||||
search = {
|
||||
safe_search = 0;
|
||||
autocomplete = "qwant";
|
||||
autocomplete = "google";
|
||||
prefer_configured_language = false;
|
||||
};
|
||||
|
||||
@ -43,24 +42,23 @@ in
|
||||
{ name = "google"; disabled = false; }
|
||||
{ name = "bing"; disabled = false; }
|
||||
{ name = "qwant"; disabled = false; }
|
||||
{ name = "duckduckgo"; disabled = false; }
|
||||
{ name = "brave"; disabled = false; }
|
||||
# keep getting access denied (!?)
|
||||
{ name = "duckduckgo"; disabled = true; }
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
nginx.virtualHosts.${domain} = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
|
||||
locations."/" = {
|
||||
proxyPass = "http://127.0.0.1:${toString config.services.searx.settings.server.port}";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
networking.extraHosts = ''
|
||||
${network.architect-lan} ${domain}
|
||||
${network.architect-wg} ${domain}
|
||||
${network.architect-ts} ${domain}
|
||||
'';
|
||||
architect.vhost.${domain} = with config.architect.networks; {
|
||||
dnsInterfaces = [ "tailscale" ];
|
||||
locations."/" = {
|
||||
port = config.services.searx.settings.server.port;
|
||||
allowLan = true;
|
||||
|
||||
allow = [
|
||||
tailscale.net
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user