aboutsummaryrefslogtreecommitdiff
path: root/articles/2023/searxng-on-my-laptop.html
diff options
context:
space:
mode:
authorPhilip Wittamore <philip@wittamore.com>2026-07-12 11:08:50 +0200
committerPhilip Wittamore <philip@wittamore.com>2026-07-12 11:08:50 +0200
commit420ceb49b53a8fa9d8ba8443e42e50cd7bd7cea9 (patch)
tree3009f0564d75e3f7d1ca38507e7ebb92deaded07 /articles/2023/searxng-on-my-laptop.html
update
Diffstat (limited to 'articles/2023/searxng-on-my-laptop.html')
-rwxr-xr-xarticles/2023/searxng-on-my-laptop.html59
1 files changed, 59 insertions, 0 deletions
diff --git a/articles/2023/searxng-on-my-laptop.html b/articles/2023/searxng-on-my-laptop.html
new file mode 100755
index 0000000..f566d65
--- /dev/null
+++ b/articles/2023/searxng-on-my-laptop.html
@@ -0,0 +1,59 @@
+<!doctype html>
+<html lang="EN">
+ <head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <link rel="stylesheet" href="/style.css">
+ <title>Bloggings</title>
+ </head>
+ <body>
+ <header>
+ <h1>Bloggings</h1>
+ <a href="/index.php">Back</a>
+
+ </header>
+
+ <main>
+<article>
+<h2>SearxNG on my laptop</h2>
+ <h3>05-11-2023</h3>
+ <p>To keep my searches private, I've installed SearxNG on the T430.</p>
+ <p>Here's how I did it: My OS is Arch linux.</p>
+ <pre>
+$ cd ~/Downloads
+$ git clone https://github.com/searxng/searxng.git searxng
+$ cd searxng sudo -H ./utils/searxng.sh install all
+</pre
+ >
+ <p>
+ I use Nginx as a web server on my laptop, so I added the following in
+ /etc/nginx/sites-available/localhost
+ </p>
+ <pre>
+location /searxng {
+ uwsgi_pass unix:///usr/local/searxng/run/socket;
+ 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;
+ # see limiter.py
+ uwsgi_param HTTP_X_REAL_IP $remote_addr;
+ uwsgi_param HTTP_X_FORWARDED_FOR $proxy_add_x_forwarded_for;
+}
+</pre
+ >
+ <p>Navigate to localhost/searxng and there's our search engine.</p>
+ <p>
+ In order to use it as the default search engine in Firefox, right click on
+ the url and select searxng as a search engine.
+ </p>
+ <p>Then in settings set searxng as the default search engine.</p>
+
+</article>
+</main>
+<footer>
+<p>&nbsp;</p><p>ยง</p></footer>
+</body></html>