Skip to content

Commit cbebb10

Browse files
committed
Fix: Update SearXNG limiter.toml and settings.yml configurations
- Migrate deprecated [real_ip] section to [botdetection.proxy] - Add trusted_proxies configuration under [botdetection.proxy] - Remove 'Ahmia blacklist' from enabled_plugins in settings.yml This aligns with SearXNG latest configuration requirements and removes plugins that cause issues.
1 parent 4831ba4 commit cbebb10

File tree

4 files changed

+18
-20
lines changed

4 files changed

+18
-20
lines changed

docker/base/fs/etc/searxng/limiter.toml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[real_ip]
1+
[botdetection.proxy]
22
# Number of values to trust for X-Forwarded-For.
33
x_for = 1
44

@@ -7,6 +7,11 @@ x_for = 1
77
ipv4_prefix = 32
88
ipv6_prefix = 48
99

10+
trusted_proxies = [
11+
"127.0.0.0/8",
12+
"::1",
13+
]
14+
1015
[botdetection.ip_limit]
1116
# To get unlimited access in a local network, by default link-local addresses
1217
# (networks) are not monitored by the ip_limit
@@ -19,14 +24,8 @@ link_token = false
1924
# In the limiter, the ip_lists method has priority over all other methods.
2025
# If an IP is in the pass_ip list, it has unrestricted access and is not
2126
# checked if, for example, the "user agent" suggests a bot (e.g., curl).
22-
block_ip = [
23-
# '93.184.216.34', # Example IPv4 address
24-
# '257.1.1.1', # Invalid IP --> will be ignored, logged in ERROR class
25-
]
26-
pass_ip = [
27-
# '192.168.0.0/16', # IPv4 private network
28-
# 'fe80::/10', # IPv6 link-local; overrides botdetection.ip_limit.filter_link_local
29-
]
27+
block_ip = []
28+
pass_ip = []
3029

3130
# Activate passlist of (hardcoded) IPs from the SearXNG organization,
3231
# e.g., `check.searx.space`.

docker/base/fs/etc/searxng/settings.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ enabled_plugins:
3939
- 'Hash plugin'
4040
- 'Self Informations'
4141
- 'Tracker URL remover'
42-
- 'Ahmia blacklist'
42+
4343
# - 'Hostnames plugin' # see 'hostnames' configuration below
4444
# - 'Open Access DOI rewrite'
4545

docker/run/fs/etc/searxng/limiter.toml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[real_ip]
1+
[botdetection.proxy]
22
# Number of values to trust for X-Forwarded-For.
33
x_for = 1
44

@@ -7,6 +7,11 @@ x_for = 1
77
ipv4_prefix = 32
88
ipv6_prefix = 48
99

10+
trusted_proxies = [
11+
"127.0.0.0/8",
12+
"::1",
13+
]
14+
1015
[botdetection.ip_limit]
1116
# To get unlimited access in a local network, by default link-local addresses
1217
# (networks) are not monitored by the ip_limit
@@ -19,14 +24,8 @@ link_token = false
1924
# In the limiter, the ip_lists method has priority over all other methods.
2025
# If an IP is in the pass_ip list, it has unrestricted access and is not
2126
# checked if, for example, the "user agent" suggests a bot (e.g., curl).
22-
block_ip = [
23-
# '93.184.216.34', # Example IPv4 address
24-
# '257.1.1.1', # Invalid IP --> will be ignored, logged in ERROR class
25-
]
26-
pass_ip = [
27-
# '192.168.0.0/16', # IPv4 private network
28-
# 'fe80::/10', # IPv6 link-local; overrides botdetection.ip_limit.filter_link_local
29-
]
27+
block_ip = []
28+
pass_ip = []
3029

3130
# Activate passlist of (hardcoded) IPs from the SearXNG organization,
3231
# e.g., `check.searx.space`.

docker/run/fs/etc/searxng/settings.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ enabled_plugins:
4444
- 'Hash plugin'
4545
- 'Self Informations'
4646
- 'Tracker URL remover'
47-
- 'Ahmia blacklist'
47+
4848
# - 'Hostnames plugin' # see 'hostnames' configuration below
4949
# - 'Open Access DOI rewrite'
5050

0 commit comments

Comments
 (0)