diff options
| author | Luke Smith <luke@lukesmith.xyz> | 2022-08-07 14:39:02 -0400 |
|---|---|---|
| committer | Luke Smith <luke@lukesmith.xyz> | 2022-08-07 14:39:02 -0400 |
| commit | 6a7ace81d35aea6df9617e524a93d18e4eac634b (patch) | |
| tree | 6de133abe5f94e86bddc2d1c11bd538cabae66fb /content/searxng.md | |
| parent | 79404c875dbf20ba783c72b31111c6e2228d28a2 (diff) | |
| parent | 528e25a30e055bc82a42f52940ba0a02e0dd1719 (diff) | |
Merge branch 'master' of github.com:lukesmithxyz/landchad
Diffstat (limited to 'content/searxng.md')
| -rw-r--r-- | content/searxng.md | 48 |
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 |
