mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-06-16 10:05:13 -05:00
feat: added searXNG to Ceres
This commit is contained in:
parent
f65471c361
commit
f3e8f1a77d
1 changed files with 13 additions and 4 deletions
|
@ -149,14 +149,23 @@ in
|
||||||
virtualHosts = {
|
virtualHosts = {
|
||||||
"${host}" = {
|
"${host}" = {
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
redir /.well-known/carddav /remote.php/dav/ 301
|
handle /* {
|
||||||
redir /.well-known/caldav /remote.php/dav/ 301
|
reverse_proxy unix/${config.services.searx.uwsgiConfig.socket} {
|
||||||
|
transport unix
|
||||||
reverse_proxy ${localhost}:${toString service.ports.port0}
|
transport protocol uwsgi
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
tls ${service.ssl.cert} ${service.ssl.key}
|
tls ${service.ssl.cert} ${service.ssl.key}
|
||||||
|
|
||||||
encode zstd gzip
|
encode zstd gzip
|
||||||
|
|
||||||
|
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