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