mirror of
https://github.com/R0m1k3/Priceflow.git
synced 2026-10-23 23:28:12 +02:00
fix: Complete SearXNG bot detection bypass configuration
- Add real_ip config to settings.yml to trust proxy headers - Update limiter.toml to allow all IPs (0.0.0.0/0 and ::/0) - Re-add limiter.toml volume mount (file now exists) - Add localhost range (127.0.0.0/8) to pass_ip list
This commit is contained in:
3 files changed
+14
-2
No files matched your search
@@ -62,6 +62,7 @@ services:
|
|||||||
- SEARXNG_SECRET=priceflow-searxng-secret
|
- SEARXNG_SECRET=priceflow-searxng-secret
|
||||||
volumes:
|
volumes:
|
||||||
- ./searxng/settings.yml:/etc/searxng/settings.yml:ro
|
- ./searxng/settings.yml:/etc/searxng/settings.yml:ro
|
||||||
|
- ./searxng/limiter.toml:/etc/searxng/limiter.toml:ro
|
||||||
networks:
|
networks:
|
||||||
- nginx_default
|
- nginx_default
|
||||||
|
|
||||||
|
|||||||
@@ -1,13 +1,19 @@
|
|||||||
# SearXNG rate limiter configuration
|
# SearXNG rate limiter configuration
|
||||||
# Disabled for internal use
|
# Disabled for internal use in PriceFlow
|
||||||
|
|
||||||
[botdetection.ip_limit]
|
[botdetection.ip_limit]
|
||||||
# Disable rate limiting for internal Docker network
|
# Disable IP rate limiting completely
|
||||||
link_token = false
|
link_token = false
|
||||||
|
|
||||||
[botdetection.ip_lists]
|
[botdetection.ip_lists]
|
||||||
|
# Allow all private network ranges + localhost
|
||||||
pass_ip = [
|
pass_ip = [
|
||||||
|
"0.0.0.0/0",
|
||||||
|
"127.0.0.0/8",
|
||||||
"192.168.0.0/16",
|
"192.168.0.0/16",
|
||||||
"172.16.0.0/12",
|
"172.16.0.0/12",
|
||||||
"10.0.0.0/8",
|
"10.0.0.0/8",
|
||||||
|
"::/0",
|
||||||
]
|
]
|
||||||
|
# No blocked IPs
|
||||||
|
block_ip = []
|
||||||
@@ -10,6 +10,11 @@ server:
|
|||||||
port: 8080
|
port: 8080
|
||||||
bind_address: "0.0.0.0"
|
bind_address: "0.0.0.0"
|
||||||
method: "GET"
|
method: "GET"
|
||||||
|
# Trust all proxies for X-Forwarded-For header
|
||||||
|
real_ip:
|
||||||
|
x_for: 1
|
||||||
|
ipv4_prefix: 32
|
||||||
|
ipv6_prefix: 128
|
||||||
|
|
||||||
# Disable bot detection completely
|
# Disable bot detection completely
|
||||||
redis:
|
redis:
|
||||||
|
|||||||
Reference in new issue
Block a user