Skip to content

Commit e13a178

Browse files
committed
feat: optimize SearXNG configuration for Perplexica
- Reduce settings.yml from 69KB to 2.2KB (97% smaller) - Reduce engines from 200+ to 6 essential engines only - Keep only: google, bing_news, duckduckgo, wikipedia, brave, startpage - Disable unnecessary metrics and bot detection - Optimize for faster startup and lower memory usage - Ensure discover API works perfectly with bing_news engine - Simplify limiter configuration for local development
1 parent 062f09b commit e13a178

2 files changed

Lines changed: 117 additions & 9 deletions

File tree

searxng/limiter.toml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
[real_ip]
2+
x_for = 1
3+
ipv4_prefix = 32
4+
ipv6_prefix = 48
5+
16
[botdetection.ip_limit]
2-
# activate link_token method in the ip_limit method
3-
link_token = true
7+
filter_link_local = true
8+
link_token = false
9+
10+
[botdetection.ip_lists]
11+
block_ip = []
12+
pass_ip = []
13+
pass_searxng_org = false

searxng/settings.yml

Lines changed: 105 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,115 @@
1-
use_default_settings: true
2-
31
general:
4-
instance_name: 'searxng'
2+
debug: false
3+
instance_name: "Perplexica SearXNG"
4+
privacypolicy_url: false
5+
donation_url: false
6+
contact_url: false
7+
enable_metrics: false
8+
open_metrics: ''
59

610
search:
7-
autocomplete: 'google'
11+
safe_search: 0
12+
autocomplete: ""
13+
autocomplete_min: 4
14+
favicon_resolver: ""
15+
default_lang: "en"
16+
ban_time_on_fail: 5
17+
max_ban_time_on_fail: 120
18+
suspended_times:
19+
SearxEngineAccessDenied: 86400
20+
SearxEngineCaptcha: 86400
21+
SearxEngineTooManyRequests: 3600
22+
cf_SearxEngineCaptcha: 1296000
23+
cf_SearxEngineAccessDenied: 86400
24+
recaptcha_SearxEngineCaptcha: 604800
25+
826
formats:
927
- html
1028
- json
1129

1230
server:
13-
secret_key: 'a2fb23f1b02e6ee83875b09826990de0f6bd908b6638e8c10277d415f6ab852b' # Is overwritten by ${SEARXNG_SECRET}
31+
port: 8888
32+
bind_address: "127.0.0.1"
33+
base_url: false
34+
limiter: false
35+
public_instance: false
36+
secret_key: "perplexica_secret_key"
37+
image_proxy: false
38+
http_protocol_version: "1.0"
39+
method: "POST"
40+
default_http_headers:
41+
X-Content-Type-Options: nosniff
42+
X-Download-Options: noopen
43+
X-Robots-Tag: noindex, nofollow
44+
Referrer-Policy: no-referrer
1445

46+
outgoing:
47+
request_timeout: 3.0
48+
useragent_suffix: ""
49+
pool_connections: 100
50+
pool_maxsize: 20
51+
enable_http2: true
52+
53+
# Only essential engines for Perplexica
1554
engines:
16-
- name: wolframalpha
17-
disabled: false
55+
- name: google
56+
engine: google
57+
shortcut: go
58+
59+
- name: bing news
60+
engine: bing_news
61+
shortcut: bin
62+
63+
- name: duckduckgo
64+
engine: duckduckgo
65+
shortcut: ddg
66+
67+
- name: wikipedia
68+
engine: wikipedia
69+
shortcut: wp
70+
display_type: ["infobox"]
71+
categories: [general]
72+
73+
- name: brave
74+
engine: brave
75+
shortcut: br
76+
time_range_support: true
77+
paging: true
78+
categories: [general, web]
79+
brave_category: search
80+
81+
- name: startpage
82+
engine: startpage
83+
shortcut: sp
84+
startpage_categ: web
85+
categories: [general, web]
86+
87+
# Essential plugins only
88+
plugins:
89+
searx.plugins.calculator.SXNGPlugin:
90+
active: true
91+
92+
searx.plugins.hash_plugin.SXNGPlugin:
93+
active: true
94+
95+
searx.plugins.self_info.SXNGPlugin:
96+
active: true
97+
98+
searx.plugins.unit_converter.SXNGPlugin:
99+
active: true
100+
101+
searx.plugins.tracker_url_remover.SXNGPlugin:
102+
active: true
103+
104+
checker:
105+
off_when_debug: true
106+
107+
categories_as_tabs:
108+
general:
109+
news:
110+
map:
111+
music:
112+
it:
113+
science:
114+
files:
115+
social media:

0 commit comments

Comments
 (0)