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
dafb2db862
commit
2a06895e57
1 changed files with 19 additions and 9 deletions
|
@ -149,18 +149,28 @@ in
|
||||||
virtualHosts = {
|
virtualHosts = {
|
||||||
"${host}" = {
|
"${host}" = {
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
redir /.well-known/carddav /remote.php/dav/ 301
|
# Handle all requests at root
|
||||||
redir /.well-known/caldav /remote.php/dav/ 301
|
handle /* {
|
||||||
|
# Using unix socket for uwsgi
|
||||||
reverse_proxy ${localhost}:${toString service.ports.port0}
|
reverse_proxy unix/${config.services.searx.uwsgiConfig.socket} {
|
||||||
|
transport unix
|
||||||
tls ${service.ssl.cert} ${service.ssl.key}
|
transport protocol uwsgi
|
||||||
|
}
|
||||||
basicauth {
|
|
||||||
nick abc123
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# TLS configuration
|
||||||
|
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