You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -146,6 +146,52 @@ If you want to use Morphic as a search engine in your browser, follow these step
146
146
147
147
This will allow you to use Morphic as your default search engine in the browser.
148
148
149
+
### Using SearchXNG as an Alternative Search Backend
150
+
151
+
Morphic now supports SearchXNG as an alternative search backend. To use SearchXNG:
152
+
153
+
1. Ensure you have Docker and Docker Compose installed on your system.
154
+
2. In your `.env.local` file, set the following variables:
155
+
156
+
- SEARCHXNG_API_URL=http://redis:8080
157
+
- SEARXNG_SECRET=your_secret_key_here
158
+
- SEARXNG_PORT=8080
159
+
- SEARXNG_IMAGE_PROXY=true
160
+
- SEARCH_API=searchxng
161
+
- SEARXNG_LIMITER=false # can be enabled to limit the number of requests per IP
162
+
- SEARCH_API=searchxng
163
+
164
+
3. Two configuration files are provided in the root directory:
165
+
-`searxng-settings.yml`: This file contains the main configuration for SearchXNG, including engine settings and server options.
166
+
-`searxng-limiter.toml`: This file configures the rate limiting and bot detection features of SearchXNG.
167
+
168
+
4. Run `docker-compose up` to start the Morphic stack with SearchXNG included.
169
+
5. SearchXNG will be available at `http://localhost:8080` and Morphic will use it as the search backend.
170
+
171
+
#### Customizing SearchXNG
172
+
173
+
* You can modify `searxng-settings.yml` to enable/disable specific search engines, change UI settings, or adjust server options.
174
+
* The `searxng-limiter.toml` file allows you to configure rate limiting and bot detection. This is useful if you're exposing SearchXNG directly to the internet.
175
+
* If you prefer not to use external configuration files, you can set these options using environment variables in the `docker-compose.yml` file or directly in the SearchXNG container.
176
+
177
+
#### Advanced Configuration
178
+
179
+
* To disable the limiter entirely, set `LIMITER=false` in the SearchXNG service environment variables.
180
+
* For production use, consider adjusting the `SEARXNG_SECRET_KEY` to a secure, randomly generated value.
181
+
* The `SEARXNG_IMAGE_PROXY` option allows SearchXNG to proxy image results, enhancing privacy. Set to `true` to enable this feature.
182
+
183
+
#### Troubleshooting
184
+
185
+
* If you encounter issues with specific search engines (e.g., Wikidata), you can disable them in `searxng-settings.yml`:
186
+
187
+
```yaml
188
+
engines:
189
+
- name: wikidata
190
+
disabled: true
191
+
```
192
+
193
+
* refer to https://docs.searxng.org/admin/settings/settings.html#settings-yml
0 commit comments