SearXNG
This repository aims to create a new SearXNG instance in five minutes using Docker containers. It provides a combination with Nginx Proxy Manager to creates a SSL endpoint to your instance.
Docker
~ 20Git
# Clone the repo
git clone git@github.com:GridexX/SearXNG-Self-Hosted.git
# Move in the main directory
cd SearXNG-Self-Hosted
# Replace the Secret Key used by SearchXNG
sed -i "s|ultrasecretkey|$(openssl rand -hex 32)|g" searxng/settings.yml
# Start the containers
docker compose up -d
To add a custom Domain Name with a SSL endpoint, a docker compose file is provided in this repository. Here are the steps to reproduce:
-
Uncomment the line in the network file in the
docker-compose.yml
file:networks: searxng: ipam: driver: default nginx-proxy-manager_web-proxy: # If you want to use Nginx Proxy Manager network external: true
-
Start the NPM instance:
docker compose up -f docker-compose-npm.yml up -d
-
Start the SearXNG stack:
docker compose up -d
-
Creates the DNS record from your DNS manager with your
DOMAIN
-
Add the Proxy Host on NPM Use the following settings:
- Scheme:
http
- Forward Hostname / IP:
searxng.dockerlocal
- Port:
8080
Create a new SSL certificates and check:
- Force SSL
- HTTP/2 Support
- HSTS enabled
- Scheme:
Well done you finished the configuration 🥳
Now go on your DOMAIN
url, you should see the HomePage !
This repository is heavily inspired by the searxng-docker repository.
For more information about how to configure proxy hosts, refers to the NPM documentation
Redacted by @GridexX during a scorching day in Iasi 🥵🇷🇴