on master help sign in
add reverse proxy configuration
commit62cb89d6696357564a4cdbf343d9d1cb2a68aec5 authorNoemi Vanyi <sitbackandwait@gmail.com> dateThu 21 Apr 2016, 14:30 (10 years ago) parent356efb9
3 files changed+47−6
_sources/dev/install/installation.txt+17−2 dev/install/installation.html+13−2 docs/dev/install/installation.rst+17−2
_sources/dev/install/installation.txt+17−2
@@ -171,8 +171,6 @@ Add this configuration in the server config file
171171 location = /searx { rewrite ^ /searx/; }
172172 location /searx {
173173 try_files $uri @searx;
174− proxy_pass http://localhost:9999/;
175− proxy_set_header X-Script-Name /searx;
176174 }
177175 location @searx {
178176 uwsgi_param SCRIPT_NAME /searx;
@@ -182,6 +180,23 @@ Add this configuration in the server config file
182180 }
183181
184182
183+OR
184+
185+using reverse proxy
186+(Please, note that reverse proxy advised to be used in case of single-user or low-traffic instances.)
187+
188+.. code:: nginx
189+
190+ location /searx {
191+ proxy_pass http://127.0.0.1:8888;
192+ proxy_set_header Host $host;
193+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
194+ proxy_set_header X-Scheme $scheme;
195+ proxy_set_header X-Script-Name /searx;
196+ proxy_buffering off;
197+ }
198+
199+
185200Enable base\_url in searx/settings.yml
186201
187202::
dev/install/installation.html+13−2
@@ -190,8 +190,6 @@ content:</p>
190190<div class="code nginx highlight-default"><div class="highlight"><pre>location = /searx { rewrite ^ /searx/; }
191191location /searx {
192192 try_files $uri @searx;
193− proxy_pass http://localhost:9999/;
194− proxy_set_header X-Script-Name /searx;
195193}
196194location @searx {
197195 uwsgi_param SCRIPT_NAME /searx;
@@ -201,6 +199,19 @@ location @searx {
201199}
202200</pre></div>
203201</div>
202+<p>OR</p>
203+<p>using reverse proxy
204+(Please, note that reverse proxy advised to be used in case of single-user or low-traffic instances.)</p>
205+<div class="code nginx highlight-default"><div class="highlight"><pre>location /searx {
206+ proxy_pass http://127.0.0.1:8888;
207+ proxy_set_header Host $host;
208+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
209+ proxy_set_header X-Scheme $scheme;
210+ proxy_set_header X-Script-Name /searx;
211+ proxy_buffering off;
212+}
213+</pre></div>
214+</div>
204215<p>Enable base_url in searx/settings.yml</p>
205216<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>
206217</pre></div>
docs/dev/install/installation.rst+17−2
@@ -171,8 +171,6 @@ Add this configuration in the server config file
171171 location = /searx { rewrite ^ /searx/; }
172172 location /searx {
173173 try_files $uri @searx;
174− proxy_pass http://localhost:9999/;
175− proxy_set_header X-Script-Name /searx;
176174 }
177175 location @searx {
178176 uwsgi_param SCRIPT_NAME /searx;
@@ -182,6 +180,23 @@ Add this configuration in the server config file
182180 }
183181
184182
183+OR
184+
185+using reverse proxy
186+(Please, note that reverse proxy advised to be used in case of single-user or low-traffic instances.)
187+
188+.. code:: nginx
189+
190+ location /searx {
191+ proxy_pass http://127.0.0.1:8888;
192+ proxy_set_header Host $host;
193+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
194+ proxy_set_header X-Scheme $scheme;
195+ proxy_set_header X-Script-Name /searx;
196+ proxy_buffering off;
197+ }
198+
199+
185200Enable base\_url in searx/settings.yml
186201
187202::