1
0
mirror of https://github.com/searx/searx synced 2025-02-23 23:27:44 +01:00

add reverse proxy configuration

This commit is contained in:
Noemi Vanyi 2016-04-21 14:30:17 +02:00
parent 356efb967f
commit 62cb89d669
3 changed files with 47 additions and 6 deletions

View File

@ -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
::

View File

@ -190,8 +190,6 @@ content:</p>
<div class="code nginx highlight-default"><div class="highlight"><pre>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;
@ -201,6 +199,19 @@ location @searx {
}
</pre></div>
</div>
<p>OR</p>
<p>using reverse proxy
(Please, note that reverse proxy advised to be used in case of single-user or low-traffic instances.)</p>
<div class="code nginx highlight-default"><div class="highlight"><pre>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;
}
</pre></div>
</div>
<p>Enable base_url in searx/settings.yml</p>
<div class="highlight-default"><div class="highlight"><pre><span class="n">base_url</span> <span class="p">:</span> <span class="n">http</span><span class="p">:</span><span class="o">//</span><span class="n">your</span><span class="o">.</span><span class="n">domain</span><span class="o">.</span><span class="n">tld</span><span class="o">/</span><span class="n">searx</span><span class="o">/</span>
</pre></div>

View File

@ -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
::