forked from Ponysearch/Ponysearch
add reverse proxy configuration
This commit is contained in:
parent
2430baa1fd
commit
b40d7a2b36
1 changed files with 17 additions and 2 deletions
|
@ -171,8 +171,6 @@ Add this configuration in the server config file
|
|||
location = /searx { rewrite ^ /searx/; }
|
||||
location /searx {
|
||||
try_files $uri @searx;
|
||||
proxy_pass http://localhost:9999/;
|
||||
proxy_set_header X-Script-Name /searx;
|
||||
}
|
||||
location @searx {
|
||||
uwsgi_param SCRIPT_NAME /searx;
|
||||
|
@ -182,6 +180,23 @@ Add this configuration in the server config file
|
|||
}
|
||||
|
||||
|
||||
OR
|
||||
|
||||
using reverse proxy
|
||||
(Please, note that reverse proxy advised to be used in case of single-user or low-traffic instances.)
|
||||
|
||||
.. code:: nginx
|
||||
|
||||
location /searx {
|
||||
proxy_pass http://127.0.0.1:8888;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Scheme $scheme;
|
||||
proxy_set_header X-Script-Name /searx;
|
||||
proxy_buffering off;
|
||||
}
|
||||
|
||||
|
||||
Enable base\_url in searx/settings.yml
|
||||
|
||||
::
|
||||
|
|
Loading…
Reference in a new issue