diff options
| author | Adam Lawson <dev@goshawk22.uk> | 2022-05-16 16:45:28 +0100 |
|---|---|---|
| committer | Adam Lawson <dev@goshawk22.uk> | 2022-05-16 16:45:28 +0100 |
| commit | ad1473870278334e59360eccfa9b520f4c00149b (patch) | |
| tree | eb79d76cae36af24763be65f37f3ac2a5a54c4a5 | |
| parent | c7742acdec2fff8309b6664a3b1546df53156b68 (diff) | |
Added SearXNG Tutorial
| -rw-r--r-- | index.html | 1 | ||||
| -rw-r--r-- | pix/searxng.svg | 19 | ||||
| -rw-r--r-- | searxng.html | 143 |
3 files changed, 163 insertions, 0 deletions
@@ -84,6 +84,7 @@ img { border: none ;} <dt><a href="calibre.html"><img src="pix/calibre.png"> Calibre</a></dt><dd>A library server</dd> <dt><a href="i2p.html"><img src="pix/itoopie.svg" alt="Itoopie">I2P</a></dt><dd>Host your site on a private and peer-to-peer internet layer.</dd> <dt><a href="tor.html"><img src="pix/tor.svg">Tor</a></dt><dd>Host your site on private onion-routing.</dd> + <dt><a href="searxng.html"><img src="pix/searxng.svg">SearXNG</a></dt><dd>Setting up a SearXNG metasearch engine.</dd> </dl> <h3 id=crypto>Accepting Cryptocurrency Tips</h3> diff --git a/pix/searxng.svg b/pix/searxng.svg new file mode 100644 index 0000000..417e7ed --- /dev/null +++ b/pix/searxng.svg @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<svg xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" id="svg8" version="1.1" viewBox="0 0 92 92" height="92mm" width="92mm"> + <defs id="defs2"/> + <metadata id="metadata5"> + <rdf:RDF> + <cc:Work rdf:about=""> + <dc:format>image/svg+xml</dc:format> + <dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/> + <dc:title/> + </cc:Work> + </rdf:RDF> + </metadata> + <g transform="translate(-40.921303,-17.416526)" id="layer1"> + <circle r="0" style="fill:none;stroke:#000000;stroke-width:12;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" cy="92" cx="75" id="path3713"/> + <circle r="30" cy="53.902557" cx="75.921303" id="path834" style="fill:none;fill-opacity:1;stroke:#3050ff;stroke-width:10;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"/> + <path d="m 67.514849,37.91524 a 18,18 0 0 1 21.051475,3.312407 18,18 0 0 1 3.137312,21.078282" id="path852" style="fill:none;fill-opacity:1;stroke:#3050ff;stroke-width:5;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"/> + <rect transform="rotate(-46.234709)" ry="1.8669105e-13" y="122.08995" x="3.7063529" height="39.963303" width="18.846331" id="rect912" style="opacity:1;fill:#3050ff;fill-opacity:1;stroke:none;stroke-width:8;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"/> + </g> +</svg>
\ No newline at end of file diff --git a/searxng.html b/searxng.html new file mode 100644 index 0000000..3271899 --- /dev/null +++ b/searxng.html @@ -0,0 +1,143 @@ +<!DOCTYPE html> +<html lang=en> + <head> + <title>Setting up a public SearXNG instance – LandChad.net</title> + <meta charset="utf-8"/> + <link rel="shortcut icon" href="favicon.ico" type="image/x-icon" /> + <link rel='stylesheet' type='text/css' href='style.css'> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <link rel='alternate' type='application/rss+xml' title='Land Chad RSS' href='/rss.xml'> + </head> +<body> + <header><h1>Setting up a public SearXNG instance</h1></header> + <nav></nav> + <main> + <img src="pix/searxng.svg" alt="SearXNG logo" class=titleimg> + <p> + SearXNG is a free internet metasearch engine which aggregates results from more than 70 search services. + This guide sets up a working instance that can be accessed using a domain over HTTPS. + Features include: + </p> + <ul> + <li>Self hosted</li> + <li>No user tracking</li> + <li>No user profiling</li> + <li>About 70 supported search engines</li> + <li>Easy integration with any search engine</li> + <li>Cookies are not used by default</li> + <li>Secure, encrypted connections (HTTPS/SSL)</li> + </ul> + + <h2>Installation</h2> + + <p>Install the required packages.</p> + + <pre><code>apt install git nginx -y</code></pre> + + <p>Open http and https ports.</p> + + <pre><code>iptables -I INPUT 6 -m state --state NEW -p tcp --dport 80 -j ACCEPT +iptables -I INPUT 6 -m state --state NEW -p tcp --dport 443 -j ACCEPT +netfilter-persistent save +ufw allow 80 +ufw allow 443</code></pre> + + <p>Clone the SearXNG Repository.</p> + + <pre><code>git clone https://github.com/searxng/searxng searxng +cd searxng</code></pre> + + <p>Installing SearXNG, Filtron and Morty.</p> + + <pre><code>./utils/searx.sh install all +./utils/filtron.sh install all +./utils/morty.sh install all</code></pre> + + <p>Check that both filtron and morty are running.</p> + + <pre><code>systemctl status filtron +systemctl status morty</code></pre> + + <h2>Configure Nginx</h2> + + <p>Delete the default site.</p> + + <pre><code>rm /etc/nginx/sites-enabled/default</code></pre> + + <p>Create a new file <code>/etc/nginx/sites-available/searxng.conf</code> and add the following:</p> + + <pre><code> +server { + + # Listens on http + listen 80; + listen [::]:80; + + # Your server name + server_name searx.example.org; + + # If you want to log user activity, comment these + 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; + } + + location /searx/static { + alias /usr/local/searx/searx-src/searx/static; + } + + # Morty reverse proxy + location /morty { + proxy_pass http://127.0.0.1:3000/; + + 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; + } +} + </code></pre> + + <p>Now create a symbolic link to enable this site.</p> + + <pre><code>ln -s /etc/nginx/sites-available/searxng.conf /etc/nginx/sites-enabled/searxng.conf</code></pre> + + <p>Restart Nginx and SearXNG.</p> + + <pre><code>systemctl restart nginx +service uwsgi restart searx</code></pre> + + <h2>Configure HTTPS with Certbot</h2> + + <p>Install certbot.</p> + + <pre><code>apt install python3-certbot-nginx</code></pre> + + <p>Install a Let's Encrypt SSL certificate to Nginx and optionally let it configure HTTPS for you. + <a href="certbot.html">Detailed instructions and additional information</a>.</p> + + <pre><code>certbot --nginx</code></pre> + + <p>SearXNG should now be available from your domain.</p> + + <h2>Configuration</h2> + + <p>You can change settings by editing <code>/etc/searxng/settings.yml</code>.</p> + + <h2>Contribution</h2> + <li>Author: goshawk22 – <a href="https://goshawk22.uk">website</a></li> + </main> +<footer><a href="https://landchad.net">LandChad.net</a></br>Because Everyone should be an Internet LandChad.</br><a href="index.html"><li><img src="pix/chad.gif" alt="chad"></li></a><a href="rss.xml"><li><img src="pix/rss.svg" alt="RSS"></li></a><a href="donate-bitcoin.html"><li><img src="pix/btc.svg" alt="BTC"></li></a><a href="donate-monero.html"><li><img src="pix/xmr.svg" alt="XMR"></li></a><a href="https://github.com/lukesmithxyz/landchad"><li><img src="pix/git.svg" alt="Github"></li></a></footer> +</body> +</html> |
