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
4e4bbd1f43
commit
2854e9eb10
1 changed files with 10 additions and 4 deletions
|
@ -149,13 +149,19 @@ in
|
||||||
virtualHosts = {
|
virtualHosts = {
|
||||||
"${host}" = {
|
"${host}" = {
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
redir /.well-known/carddav /remote.php/dav/ 301
|
# Remove the carddav/caldav redirects if not needed for SearXNG
|
||||||
redir /.well-known/caldav /remote.php/dav/ 301
|
# redir /.well-known/carddav /remote.php/dav/ 301
|
||||||
|
# redir /.well-known/caldav /remote.php/dav/ 301
|
||||||
|
|
||||||
reverse_proxy ${localhost}:${toString service.ports.port0}
|
reverse_proxy ${localhost}:${toString service.ports.port0} {
|
||||||
|
# Add header to help SearXNG generate correct URLs
|
||||||
|
header_up X-Forwarded-Proto {scheme}
|
||||||
|
header_up X-Script-Name /
|
||||||
|
header_up X-Forwarded-For {remote}
|
||||||
|
header_up Host {host}
|
||||||
|
}
|
||||||
|
|
||||||
tls ${service.ssl.cert} ${service.ssl.key}
|
tls ${service.ssl.cert} ${service.ssl.key}
|
||||||
|
|
||||||
encode zstd gzip
|
encode zstd gzip
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue