|
@@ -190,8 +190,6 @@ content:</p>
|
190
|
190
|
<div class="code nginx highlight-default"><div class="highlight"><pre>location = /searx { rewrite ^ /searx/; }
|
191
|
191
|
location /searx {
|
192
|
192
|
try_files $uri @searx;
|
193
|
|
- proxy_pass http://localhost:9999/;
|
194
|
|
- proxy_set_header X-Script-Name /searx;
|
195
|
193
|
}
|
196
|
194
|
location @searx {
|
197
|
195
|
uwsgi_param SCRIPT_NAME /searx;
|
|
@@ -201,6 +199,19 @@ location @searx {
|
201
|
199
|
}
|
202
|
200
|
</pre></div>
|
203
|
201
|
</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>
|
204
|
215
|
<p>Enable base_url in searx/settings.yml</p>
|
205
|
216
|
<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>
|
206
|
217
|
</pre></div>
|