/ Docs

Custom SearXNG instance

This page will show you settings that you need if you want to use your own SearXNG instance with Khofly. If you don't have your own SearXNG instance hosted check out the hosting guide.

1. Change settings yaml to include the following changes

Add output format json, this will allow you to use the search as API and return a JSON response, and make sure to set a long randomly generated string for server secret ( ex. run openssl rand -hex 32 )

search:
  formats:
    - html
    - json # add this

server:
  secret_key: "sercet" # make sure to change this

After this change restart your SearXNG instance with sudo service uwsgi restart searxng

Finally - Add your instance to Khofly

Go to Settings/Instances/SearXNG URL and set your instances domain in the following format https://example.com

Read more