update searx

This commit is contained in:
zackartz 2024-05-03 15:42:26 -04:00
parent 1310c4c7eb
commit cdb638ef0e
No known key found for this signature in database
GPG key ID: 5B53E53A9A514DBA
2 changed files with 16 additions and 17 deletions

View file

@ -15,8 +15,21 @@
services.nginx.virtualHosts."search.zackmyers.io" = {
forceSSL = true;
enableACME = true;
locations."/searx" = {
uwsgiPass = "unix://run/searx/searx.sock";
};
locations."/searx".extraConfig = ''
uwsgi_pass unix:///run/searx/searx.sock;
include uwsgi_params;
uwsgi_param HTTP_HOST $host;
uwsgi_param HTTP_CONNECTION $http_connection;
# see flaskfix.py
uwsgi_param HTTP_X_SCHEME $scheme;
uwsgi_param HTTP_X_SCRIPT_NAME /searxng;
# see limiter.py
uwsgi_param HTTP_X_REAL_IP $remote_addr;
uwsgi_param HTTP_X_FORWARDED_FOR $proxy_add_x_forwarded_for;
'';
};
}