summaryrefslogtreecommitdiff
path: root/content
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2022-08-15 11:56:18 -0400
committerLuke Smith <luke@lukesmith.xyz>2022-08-15 11:56:18 -0400
commit9f422700af2e8d0c445fd0821977ca7a728e1a6a (patch)
tree05d87090df19f69a1b703a024d1e4954f6774957 /content
parente6c130988873393822c3111ffc3eda5385eaacc0 (diff)
searxng tweaks
Diffstat (limited to 'content')
-rw-r--r--content/searxng.md19
1 files changed, 12 insertions, 7 deletions
diff --git a/content/searxng.md b/content/searxng.md
index eb02de3..e238f0f 100644
--- a/content/searxng.md
+++ b/content/searxng.md
@@ -20,8 +20,6 @@ that can be accessed using a domain over HTTPS. Features include:
## Installation
-"For the installation procedure, use a sudoer login to run the scripts. If you install from root, take into account that the scripts are creating a searx, a filtron and a morty user. In the installation procedure these new created users do need read access to the clone of searx, which is not the case if you clone into a folder below /root." - SearXNG Docs
-
Install the required packages.
```sh
@@ -38,17 +36,24 @@ ufw allow 80
ufw allow 443
```
-Clone the SearXNG Repository.
+First we will create a user for SearX.
+
+```
+useradd -mr -d "/usr/local/searxng" -c 'Privacy-respecting metasearch engine' -s /bin/bash searxng
+```
+Although the auto-install script below we create this user itself, we can go ahead and make it to give the cloned repository the correct permissions.
+
+Now we clone the SearXNG Repository into the `searx` user's home.
```sh
-git clone https://github.com/searxng/searxng searxng
-cd searxng
+git clone https://github.com/searxng/searxng /usr/local/searxng/searxng-src
+cd /usr/local/searxng/searxng-src
```
Installing SearXNG.
```sh
-sudo -H ./utils/searxng.sh install all
+./utils/searxng.sh install all
```
## Configure Nginx
@@ -64,7 +69,7 @@ server {
listen [::]:80;
# Your server name
- server_name searx.example.org;
+ server_name searx.{{<hl>}}example.org{{</hl>}} ;
# If you want to log user activity, comment these
access_log /dev/null;