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
d2d7ec00a2
commit
4e4bbd1f43
5 changed files with 15 additions and 19 deletions
Binary file not shown.
After Width: | Height: | Size: 27 KiB |
|
@ -17,4 +17,13 @@
|
||||||
{ template = "https://kagi.com/search?q={searchTerms}"; }
|
{ template = "https://kagi.com/search?q={searchTerms}"; }
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
"SearXNG" = {
|
||||||
|
definedAliases = [
|
||||||
|
"@sx"
|
||||||
|
];
|
||||||
|
icon = ./icons/sx.png;
|
||||||
|
urls = [
|
||||||
|
{ template = "http://localhost:8888/search?q={searchTerms}"; }
|
||||||
|
];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,7 +30,7 @@ in
|
||||||
{
|
{
|
||||||
search = {
|
search = {
|
||||||
force = true;
|
force = true;
|
||||||
default = "Kagi";
|
default = "SearXNG";
|
||||||
engines = aggregatedSearchEngines;
|
engines = aggregatedSearchEngines;
|
||||||
order = [
|
order = [
|
||||||
"AlternativeTo"
|
"AlternativeTo"
|
||||||
|
|
|
@ -50,6 +50,7 @@ in
|
||||||
website
|
website
|
||||||
postgresql
|
postgresql
|
||||||
samba
|
samba
|
||||||
|
searx
|
||||||
vaultwarden
|
vaultwarden
|
||||||
forgejo
|
forgejo
|
||||||
wayland
|
wayland
|
||||||
|
|
|
@ -149,28 +149,14 @@ in
|
||||||
virtualHosts = {
|
virtualHosts = {
|
||||||
"${host}" = {
|
"${host}" = {
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
# Handle all requests at root
|
redir /.well-known/carddav /remote.php/dav/ 301
|
||||||
handle /* {
|
redir /.well-known/caldav /remote.php/dav/ 301
|
||||||
# Using unix socket for uwsgi
|
|
||||||
reverse_proxy unix/${config.services.searx.uwsgiConfig.socket} {
|
reverse_proxy ${localhost}:${toString service.ports.port0}
|
||||||
transport unix
|
|
||||||
transport protocol uwsgi
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
# TLS configuration
|
|
||||||
tls ${service.ssl.cert} ${service.ssl.key}
|
tls ${service.ssl.cert} ${service.ssl.key}
|
||||||
|
|
||||||
# Compression (equivalent to nginx's gzip settings)
|
|
||||||
encode zstd gzip
|
encode zstd gzip
|
||||||
|
|
||||||
# Common security headers (similar to nginx recommended settings)
|
|
||||||
header {
|
|
||||||
Strict-Transport-Security "max-age=31536000;"
|
|
||||||
X-Content-Type-Options "nosniff"
|
|
||||||
X-Frame-Options "DENY"
|
|
||||||
Referrer-Policy "no-referrer-when-downgrade"
|
|
||||||
}
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue