diff options
| author | Noemi Vanyi <sitbackandwait@gmail.com> | 2016-04-21 14:30:17 +0200 |
|---|---|---|
| committer | Noemi Vanyi <sitbackandwait@gmail.com> | 2016-04-21 14:30:17 +0200 |
| commit | b40d7a2b36014f8db825c06350ed84db7eed67d5 (patch) | |
| tree | 9dd3b451b00ff48590efdd725640d4763647c990 /docs | |
| parent | 2430baa1fd6e4ecba4bc72a8e71c49a38b424216 (diff) | |
add reverse proxy configuration
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/dev/install/installation.rst | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/docs/dev/install/installation.rst b/docs/dev/install/installation.rst index d69f30e8f..cbbd25f57 100644 --- a/docs/dev/install/installation.rst +++ b/docs/dev/install/installation.rst @@ -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 :: |