mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-06-16 01:55:13 -05:00
feat: added searXNG to Ceres
This commit is contained in:
parent
6dd55c9a99
commit
88058b1fec
1 changed files with 156 additions and 143 deletions
|
@ -11,157 +11,170 @@ let
|
||||||
host = "${service.subdomain}.${web.domains.url0}";
|
host = "${service.subdomain}.${web.domains.url0}";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
services.searx = {
|
services = {
|
||||||
enable = true;
|
searx = {
|
||||||
redisCreateLocally = true;
|
enable = true;
|
||||||
uwsgiConfig = {
|
redisCreateLocally = true;
|
||||||
socket = "/run/searx/searx.sock";
|
uwsgiConfig = {
|
||||||
http = ":8888";
|
socket = "/run/searx/searx.sock";
|
||||||
chmod-socket = "660";
|
http = ":8888";
|
||||||
|
chmod-socket = "660";
|
||||||
|
};
|
||||||
|
settings = {
|
||||||
|
general = {
|
||||||
|
debug = false;
|
||||||
|
instance_name = "SearXNG Instance";
|
||||||
|
donation_url = false;
|
||||||
|
contact_url = false;
|
||||||
|
privacypolicy_url = false;
|
||||||
|
enable_metrics = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
ui = {
|
||||||
|
static_use_hash = true;
|
||||||
|
default_locale = "en";
|
||||||
|
query_in_title = true;
|
||||||
|
infinite_scroll = true;
|
||||||
|
center_alignment = true;
|
||||||
|
default_theme = "simple";
|
||||||
|
theme_args.simple_style = "auto";
|
||||||
|
search_on_category_select = false;
|
||||||
|
hotkeys = "vim";
|
||||||
|
};
|
||||||
|
|
||||||
|
search = {
|
||||||
|
safe_search = 0;
|
||||||
|
autocomplete_min = 2;
|
||||||
|
autocomplete = "duckduckgo";
|
||||||
|
ban_time_on_fail = 5;
|
||||||
|
max_ban_time_on_fail = 120;
|
||||||
|
};
|
||||||
|
|
||||||
|
server = {
|
||||||
|
base_url = host;
|
||||||
|
port = 8888;
|
||||||
|
bind_address = localhost;
|
||||||
|
secret_key = config.sops.secrets.searx-key.path;
|
||||||
|
limiter = true;
|
||||||
|
public_instance = false;
|
||||||
|
image_proxy = true;
|
||||||
|
method = "GET";
|
||||||
|
};
|
||||||
|
|
||||||
|
engines = lib.mapAttrsToList (name: value: { inherit name; } // value) {
|
||||||
|
"duckduckgo".disabled = false;
|
||||||
|
"brave".disabled = false;
|
||||||
|
"bing".disabled = false;
|
||||||
|
"mojeek".disabled = true;
|
||||||
|
"mwmbl".disabled = false;
|
||||||
|
"mwmbl".weight = 0.4;
|
||||||
|
"qwant".disabled = true;
|
||||||
|
"crowdview".disabled = false;
|
||||||
|
"crowdview".weight = 0.5;
|
||||||
|
"curlie".disabled = true;
|
||||||
|
"ddg definitions".disabled = false;
|
||||||
|
"ddg definitions".weight = 2;
|
||||||
|
"wikibooks".disabled = false;
|
||||||
|
"wikidata".disabled = false;
|
||||||
|
"wikiquote".disabled = true;
|
||||||
|
"wikisource".disabled = true;
|
||||||
|
"wikispecies".disabled = false;
|
||||||
|
"wikispecies".weight = 0.5;
|
||||||
|
"wikiversity".disabled = false;
|
||||||
|
"wikiversity".weight = 0.5;
|
||||||
|
"wikivoyage".disabled = false;
|
||||||
|
"wikivoyage".weight = 0.5;
|
||||||
|
"currency".disabled = true;
|
||||||
|
"dictzone".disabled = true;
|
||||||
|
"lingva".disabled = true;
|
||||||
|
"bing images".disabled = false;
|
||||||
|
"brave.images".disabled = false;
|
||||||
|
"duckduckgo images".disabled = false;
|
||||||
|
"google images".disabled = false;
|
||||||
|
"qwant images".disabled = true;
|
||||||
|
"1x".disabled = true;
|
||||||
|
"artic".disabled = false;
|
||||||
|
"deviantart".disabled = false;
|
||||||
|
"flickr".disabled = true;
|
||||||
|
"imgur".disabled = false;
|
||||||
|
"library of congress".disabled = false;
|
||||||
|
"material icons".disabled = true;
|
||||||
|
"material icons".weight = 0.2;
|
||||||
|
"openverse".disabled = false;
|
||||||
|
"pinterest".disabled = true;
|
||||||
|
"svgrepo".disabled = false;
|
||||||
|
"unsplash".disabled = false;
|
||||||
|
"wallhaven".disabled = false;
|
||||||
|
"wikicommons.images".disabled = false;
|
||||||
|
"yacy images".disabled = true;
|
||||||
|
"bing videos".disabled = false;
|
||||||
|
"brave.videos".disabled = false;
|
||||||
|
"duckduckgo videos".disabled = true;
|
||||||
|
"google videos".disabled = false;
|
||||||
|
"qwant videos".disabled = false;
|
||||||
|
"dailymotion".disabled = true;
|
||||||
|
"google play movies".disabled = true;
|
||||||
|
"invidious".disabled = true;
|
||||||
|
"odysee".disabled = true;
|
||||||
|
"peertube".disabled = false;
|
||||||
|
"piped".disabled = true;
|
||||||
|
"rumble".disabled = false;
|
||||||
|
"sepiasearch".disabled = false;
|
||||||
|
"vimeo".disabled = false;
|
||||||
|
"youtube".disabled = false;
|
||||||
|
"brave.news".disabled = true;
|
||||||
|
"google news".disabled = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
outgoing = {
|
||||||
|
request_timeout = 5.0;
|
||||||
|
max_request_timeout = 15.0;
|
||||||
|
pool_connections = 100;
|
||||||
|
pool_maxsize = 15;
|
||||||
|
enable_http2 = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
enabled_plugins = [
|
||||||
|
"Basic Calculator"
|
||||||
|
"Hash plugin"
|
||||||
|
"Tor check plugin"
|
||||||
|
"Open Access DOI rewrite"
|
||||||
|
"Hostnames plugin"
|
||||||
|
"Unit converter plugin"
|
||||||
|
"Tracker URL remover"
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
settings = {
|
caddy = {
|
||||||
general = {
|
virtualHosts = {
|
||||||
debug = false;
|
"${host}" = {
|
||||||
instance_name = "SearXNG Instance";
|
extraConfig = ''
|
||||||
donation_url = false;
|
redir /.well-known/carddav /remote.php/dav/ 301
|
||||||
contact_url = false;
|
redir /.well-known/caldav /remote.php/dav/ 301
|
||||||
privacypolicy_url = false;
|
|
||||||
enable_metrics = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
ui = {
|
reverse_proxy ${localhost}:${toString service.ports.port0} {
|
||||||
static_use_hash = true;
|
header_up X-Forwarded-Proto https
|
||||||
default_locale = "en";
|
header_up X-Real-IP {remote_host}
|
||||||
query_in_title = true;
|
header_up Host {host}
|
||||||
infinite_scroll = true;
|
}
|
||||||
center_alignment = true;
|
|
||||||
default_theme = "simple";
|
|
||||||
theme_args.simple_style = "auto";
|
|
||||||
search_on_category_select = false;
|
|
||||||
hotkeys = "vim";
|
|
||||||
};
|
|
||||||
|
|
||||||
search = {
|
tls ${service.ssl.cert} ${service.ssl.key}
|
||||||
safe_search = 0;
|
|
||||||
autocomplete_min = 2;
|
|
||||||
autocomplete = "duckduckgo";
|
|
||||||
ban_time_on_fail = 5;
|
|
||||||
max_ban_time_on_fail = 120;
|
|
||||||
};
|
|
||||||
|
|
||||||
server = {
|
header {
|
||||||
base_url = host;
|
Strict-Transport-Security "max-age=31536000; includeSubDomains"
|
||||||
port = 8888;
|
X-Content-Type-Options "nosniff"
|
||||||
bind_address = localhost;
|
X-Frame-Options "DENY"
|
||||||
secret_key = config.sops.secrets.searx-key.path;
|
Referrer-Policy "no-referrer"
|
||||||
limiter = true;
|
X-XSS-Protection "1; mode=block"
|
||||||
public_instance = false;
|
}
|
||||||
image_proxy = true;
|
|
||||||
method = "GET";
|
|
||||||
};
|
|
||||||
|
|
||||||
engines = lib.mapAttrsToList (name: value: { inherit name; } // value) {
|
encode zstd gzip
|
||||||
"duckduckgo".disabled = false;
|
'';
|
||||||
"brave".disabled = false;
|
};
|
||||||
"bing".disabled = false;
|
|
||||||
"mojeek".disabled = true;
|
|
||||||
"mwmbl".disabled = false;
|
|
||||||
"mwmbl".weight = 0.4;
|
|
||||||
"qwant".disabled = true;
|
|
||||||
"crowdview".disabled = false;
|
|
||||||
"crowdview".weight = 0.5;
|
|
||||||
"curlie".disabled = true;
|
|
||||||
"ddg definitions".disabled = false;
|
|
||||||
"ddg definitions".weight = 2;
|
|
||||||
"wikibooks".disabled = false;
|
|
||||||
"wikidata".disabled = false;
|
|
||||||
"wikiquote".disabled = true;
|
|
||||||
"wikisource".disabled = true;
|
|
||||||
"wikispecies".disabled = false;
|
|
||||||
"wikispecies".weight = 0.5;
|
|
||||||
"wikiversity".disabled = false;
|
|
||||||
"wikiversity".weight = 0.5;
|
|
||||||
"wikivoyage".disabled = false;
|
|
||||||
"wikivoyage".weight = 0.5;
|
|
||||||
"currency".disabled = true;
|
|
||||||
"dictzone".disabled = true;
|
|
||||||
"lingva".disabled = true;
|
|
||||||
"bing images".disabled = false;
|
|
||||||
"brave.images".disabled = false;
|
|
||||||
"duckduckgo images".disabled = false;
|
|
||||||
"google images".disabled = false;
|
|
||||||
"qwant images".disabled = true;
|
|
||||||
"1x".disabled = true;
|
|
||||||
"artic".disabled = false;
|
|
||||||
"deviantart".disabled = false;
|
|
||||||
"flickr".disabled = true;
|
|
||||||
"imgur".disabled = false;
|
|
||||||
"library of congress".disabled = false;
|
|
||||||
"material icons".disabled = true;
|
|
||||||
"material icons".weight = 0.2;
|
|
||||||
"openverse".disabled = false;
|
|
||||||
"pinterest".disabled = true;
|
|
||||||
"svgrepo".disabled = false;
|
|
||||||
"unsplash".disabled = false;
|
|
||||||
"wallhaven".disabled = false;
|
|
||||||
"wikicommons.images".disabled = false;
|
|
||||||
"yacy images".disabled = true;
|
|
||||||
"bing videos".disabled = false;
|
|
||||||
"brave.videos".disabled = false;
|
|
||||||
"duckduckgo videos".disabled = true;
|
|
||||||
"google videos".disabled = false;
|
|
||||||
"qwant videos".disabled = false;
|
|
||||||
"dailymotion".disabled = true;
|
|
||||||
"google play movies".disabled = true;
|
|
||||||
"invidious".disabled = true;
|
|
||||||
"odysee".disabled = true;
|
|
||||||
"peertube".disabled = false;
|
|
||||||
"piped".disabled = true;
|
|
||||||
"rumble".disabled = false;
|
|
||||||
"sepiasearch".disabled = false;
|
|
||||||
"vimeo".disabled = false;
|
|
||||||
"youtube".disabled = false;
|
|
||||||
"brave.news".disabled = true;
|
|
||||||
"google news".disabled = true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
outgoing = {
|
|
||||||
request_timeout = 5.0;
|
|
||||||
max_request_timeout = 15.0;
|
|
||||||
pool_connections = 100;
|
|
||||||
pool_maxsize = 15;
|
|
||||||
enable_http2 = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
enabled_plugins = [
|
|
||||||
"Basic Calculator"
|
|
||||||
"Hash plugin"
|
|
||||||
"Tor check plugin"
|
|
||||||
"Open Access DOI rewrite"
|
|
||||||
"Hostnames plugin"
|
|
||||||
"Unit converter plugin"
|
|
||||||
"Tracker URL remover"
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
caddy = {
|
|
||||||
virtualHosts = {
|
|
||||||
"${host}" = {
|
|
||||||
extraConfig = ''
|
|
||||||
redir /.well-known/carddav /remote.php/dav/ 301
|
|
||||||
redir /.well-known/caldav /remote.php/dav/ 301
|
|
||||||
|
|
||||||
reverse_proxy ${localhost}:${toString service.ports.port0}
|
|
||||||
|
|
||||||
tls ${service.ssl.cert} ${service.ssl.key}
|
|
||||||
|
|
||||||
encode zstd gzip
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
sops =
|
sops =
|
||||||
let
|
let
|
||||||
sopsPath = secret: {
|
sopsPath = secret: {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue