Skip to content

Instantly share code, notes, and snippets.

@gilangvperdana
Last active February 12, 2023 02:36
Show Gist options
  • Save gilangvperdana/613473246bce3d861610f46505c2e36b to your computer and use it in GitHub Desktop.
Save gilangvperdana/613473246bce3d861610f46505c2e36b to your computer and use it in GitHub Desktop.
Self Hosted Search Engine - Searxng

General

  • Try to implement searxng for private hosting search engine

Prepare

cd /usr/local
git clone https://github.com/searxng/searxng-docker.git
cd searxng-docker

Configure .env

nano .env

---
SEARXNG_HOSTNAME=search.example.org
LETSENCRYPT_EMAIL=admin@example.org
---

Turn off Limitation Search

nano /usr/local/searxng-docker/searxng/settings.yml

---
# from
limiter: true

# to
limiter: false
---

Generate secret code

sed -i "s|ultrasecretkey|$(openssl rand -hex 32)|g" searxng/settings.yml

Docker compose up

docker-compose up -d

Change Logo

  • Copy logo to directory
cd /usr/local/searxng-docker
cp searxng.png /usr/local/searxng-docker/
  • Bind on Docker-compose
docker-compose down
nano docker-compose.yaml

---
    volumes:
      - ./searxng:/etc/searxng:rw
      - type: bind
        source: ./searxng.png
        target: /usr/local/searxng/searx/static/themes/simple/img/searxng.png
---

Reference

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment