summaryrefslogtreecommitdiff
path: root/content
diff options
context:
space:
mode:
authorAdam Lawson <dev@goshawk22.uk>2022-07-31 17:57:09 +0100
committerAdam Lawson <dev@goshawk22.uk>2022-07-31 17:57:09 +0100
commitcdd2c133a1370bca4bf48c7e59de494a21abb05d (patch)
tree2987d0d369f32aae18275be35afa85574bb101f3 /content
parent2ec7a89da05b4d9f74ae1aa9b2ca041dec84a9ba (diff)
searxng: Update after recent changes
The changes to searxng, the installation process has changed. These changes reflect changes to the documentation.
Diffstat (limited to 'content')
-rw-r--r--content/searxng.md48
1 files changed, 15 insertions, 33 deletions
diff --git a/content/searxng.md b/content/searxng.md
index 7e0c570..eb02de3 100644
--- a/content/searxng.md
+++ b/content/searxng.md
@@ -45,19 +45,10 @@ git clone https://github.com/searxng/searxng searxng
cd searxng
```
-Installing SearXNG, Filtron and Morty.
+Installing SearXNG.
```sh
-./utils/searx.sh install all
-./utils/filtron.sh install all
-./utils/morty.sh install all
-```
-
-Check that both filtron and morty are running.
-
-```sh
-systemctl status filtron
-systemctl status morty
+sudo -H ./utils/searxng.sh install all
```
## Configure Nginx
@@ -79,31 +70,22 @@ server {
access_log /dev/null;
error_log /dev/null;
- # Searx reverse proxy
location / {
- proxy_pass http://127.0.0.1:4004/;
-
- proxy_set_header Host $host;
- proxy_set_header Connection $http_connection;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_set_header X-Scheme $scheme;
- proxy_set_header X-Script-Name /searx;
- }
+ uwsgi_pass unix:///usr/local/searxng/run/socket;
- location /searx/static {
- alias /usr/local/searx/searx-src/searx/static;
- }
+ include uwsgi_params;
+
+ uwsgi_param HTTP_HOST $host;
+ uwsgi_param HTTP_CONNECTION $http_connection;
+
+ # see flaskfix.py
+ uwsgi_param HTTP_X_SCHEME $scheme;
+ uwsgi_param HTTP_X_SCRIPT_NAME /searxng;
- # Morty reverse proxy
- location /morty {
- proxy_pass http://127.0.0.1:3000/;
+ # see limiter.py
+ uwsgi_param HTTP_X_REAL_IP $remote_addr;
+ uwsgi_param HTTP_X_FORWARDED_FOR $proxy_add_x_forwarded_for;
- proxy_set_header Host $host;
- proxy_set_header Connection $http_connection;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_set_header X-Scheme $scheme;
}
}
```
@@ -119,7 +101,7 @@ Restart Nginx and SearXNG.
```sh
systemctl restart nginx
-service uwsgi restart searx
+service uwsgi restart searxng
```
## Configure HTTPS with Certbot