update searx
This commit is contained in:
parent
1310c4c7eb
commit
cdb638ef0e
2 changed files with 16 additions and 17 deletions
|
|
@ -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;
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue