Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 8 additions & 9 deletions docker/base/fs/etc/searxng/limiter.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[real_ip]
[botdetection.proxy]
# Number of values to trust for X-Forwarded-For.
x_for = 1

Expand All @@ -7,6 +7,11 @@ x_for = 1
ipv4_prefix = 32
ipv6_prefix = 48

trusted_proxies = [
"127.0.0.0/8",
"::1",
]

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

# Activate passlist of (hardcoded) IPs from the SearXNG organization,
# e.g., `check.searx.space`.
Expand Down
2 changes: 1 addition & 1 deletion docker/base/fs/etc/searxng/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ enabled_plugins:
- 'Hash plugin'
- 'Self Informations'
- 'Tracker URL remover'
- 'Ahmia blacklist'

# - 'Hostnames plugin' # see 'hostnames' configuration below
# - 'Open Access DOI rewrite'

Expand Down
17 changes: 8 additions & 9 deletions docker/run/fs/etc/searxng/limiter.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[real_ip]
[botdetection.proxy]
# Number of values to trust for X-Forwarded-For.
x_for = 1

Expand All @@ -7,6 +7,11 @@ x_for = 1
ipv4_prefix = 32
ipv6_prefix = 48

trusted_proxies = [
"127.0.0.0/8",
"::1",
]

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

# Activate passlist of (hardcoded) IPs from the SearXNG organization,
# e.g., `check.searx.space`.
Expand Down
2 changes: 1 addition & 1 deletion docker/run/fs/etc/searxng/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ enabled_plugins:
- 'Hash plugin'
- 'Self Informations'
- 'Tracker URL remover'
- 'Ahmia blacklist'

# - 'Hostnames plugin' # see 'hostnames' configuration below
# - 'Open Access DOI rewrite'

Expand Down