Skip to content

BerriAI/serxng-deployment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SearxNG Deployment

This repository contains a Docker setup for deploying SearxNG with JSON API support enabled.

Features

  • SearxNG metasearch engine
  • JSON API format enabled (in addition to HTML)
  • Docker and Docker Compose setup
  • Easy to deploy and customize

Configuration

The settings.yml file includes the necessary configuration to enable JSON API responses:

search:
  formats:
    - html
    - json

Quick Start

Using Docker Compose (Recommended)

  1. Update the secret key in settings.yml:

    server:
      secret_key: "your_random_secret_key_here"
  2. Start the service:

    docker-compose up -d
  3. Access SearxNG:

Using Docker

  1. Build the image:

    docker build -t searxng-custom .
  2. Run the container:

    docker run -d \
      -p 8080:8080 \
      -v $(pwd)/settings.yml:/etc/searxng/settings.yml:ro \
      -e SEARXNG_BASE_URL=http://localhost:8080 \
      --name searxng \
      searxng-custom

API Usage

Once running, you can query the JSON API:

# Simple search
curl "http://localhost:8080/search?q=test&format=json"

# Search with category filter
curl "http://localhost:8080/search?q=test&format=json&categories=general"

# Search with language
curl "http://localhost:8080/search?q=test&format=json&language=en"

Customization

Edit settings.yml to customize:

  • Search engines
  • UI preferences
  • Security settings
  • Rate limiting
  • And more...

Refer to the SearxNG documentation for all available options.

Important Notes

  • Change the secret key in settings.yml before deploying to production
  • The limiter is disabled by default - enable it for production use
  • Image proxy is enabled for privacy

Stopping the Service

docker-compose down

Logs

docker-compose logs -f searxng

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published