diff options
author | Robin Schneider <ypid@riseup.net> | 2019-12-31 14:38:30 +0100 |
---|---|---|
committer | Robin Schneider <ypid@riseup.net> | 2019-12-31 14:43:14 +0100 |
commit | 3e5a3ee4e49c739fdc464d47252c684a42620d48 (patch) | |
tree | f3066024e2f65a7a8d88eac3fe8e2296bccdd400 | |
parent | 088337295aaeebf8a37d6b4e859cd59019cd3d27 (diff) | |
download | searxng-3e5a3ee4e49c739fdc464d47252c684a42620d48.tar.gz searxng-3e5a3ee4e49c739fdc464d47252c684a42620d48.zip |
Let Nginx deliver static files directory in all examples
-rw-r--r-- | docs/admin/installation.rst | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/docs/admin/installation.rst b/docs/admin/installation.rst index e0b3779fa..15800fc01 100644 --- a/docs/admin/installation.rst +++ b/docs/admin/installation.rst @@ -154,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; @@ -199,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; |