summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2020-01-03 14:30:53 +0100
committerMarkus Heiser <markus.heiser@darmarit.de>2020-01-03 14:30:53 +0100
commit51b9295b84079776e3ea08971ccb3ac159e37477 (patch)
tree862d88f07cd975a8be0f05ea76b85191f49ed1ae /docs
parentf602cb8e4dde214d51216fb547eb4dfdee32e191 (diff)
parent17b6faa4c3c1cf14a327f4a3538fc70dce08b756 (diff)
downloadsearxng-51b9295b84079776e3ea08971ccb3ac159e37477.tar.gz
searxng-51b9295b84079776e3ea08971ccb3ac159e37477.zip
Merge branch 'master' of https://github.com/asciimoo/searx into add-docs
Diffstat (limited to 'docs')
-rw-r--r--docs/admin/installation.rst22
1 files changed, 15 insertions, 7 deletions
diff --git a/docs/admin/installation.rst b/docs/admin/installation.rst
index 239ce0704..15800fc01 100644
--- a/docs/admin/installation.rst
+++ b/docs/admin/installation.rst
@@ -114,6 +114,9 @@ content:
# Module to import
module = searx.webapp
+ # Support running the module from a webserver subdirectory.
+ route-run = fixpathinfo:
+
# Virtualenv and python path
virtualenv = /usr/local/searx/searx-ve/
pythonpath = /usr/local/searx/
@@ -151,7 +154,10 @@ content:
server {
listen 80;
server_name searx.example.com;
- root /usr/local/searx;
+ root /usr/local/searx/searx;
+
+ location /static {
+ }
location / {
include uwsgi_params;
@@ -180,14 +186,13 @@ Add this configuration in the server config file
.. code:: nginx
- location = /searx { rewrite ^ /searx/; }
- location /searx {
- try_files $uri @searx;
+ location /searx/static {
+ alias /usr/local/searx/searx/static;
}
- location @searx {
+
+ location /searx {
uwsgi_param SCRIPT_NAME /searx;
include uwsgi_params;
- uwsgi_modifier1 30;
uwsgi_pass unix:/run/uwsgi/app/searx/socket;
}
@@ -197,6 +202,10 @@ in case of single-user or low-traffic instances.)
.. code:: nginx
+ location /searx/static {
+ alias /usr/local/searx/searx/static;
+ }
+
location /searx {
proxy_pass http://127.0.0.1:8888;
proxy_set_header Host $host;
@@ -338,4 +347,3 @@ References
* How to: `Setup searx in a couple of hours with a free SSL certificate
<https://www.reddit.com/r/privacytoolsIO/comments/366kvn/how_to_setup_your_own_privacy_respecting_search/>`__
-