mirror of
https://github.com/R0m1k3/Priceflow.git
synced 2026-10-23 23:28:12 +02:00
fix: Disable SearXNG public_instance and add User-Agent header
This commit is contained in:
2 files changed
+3
-1
No files matched your search
@@ -71,6 +71,7 @@ async def search(
|
|||||||
},
|
},
|
||||||
headers={
|
headers={
|
||||||
"Accept": "application/json",
|
"Accept": "application/json",
|
||||||
|
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36",
|
||||||
"X-Forwarded-For": "127.0.0.1",
|
"X-Forwarded-For": "127.0.0.1",
|
||||||
"X-Real-IP": "127.0.0.1",
|
"X-Real-IP": "127.0.0.1",
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -5,12 +5,13 @@ use_default_settings: true
|
|||||||
server:
|
server:
|
||||||
secret_key: "priceflow-searxng-secret-key-change-in-production"
|
secret_key: "priceflow-searxng-secret-key-change-in-production"
|
||||||
limiter: false
|
limiter: false
|
||||||
|
public_instance: false
|
||||||
image_proxy: false
|
image_proxy: false
|
||||||
port: 8080
|
port: 8080
|
||||||
bind_address: "0.0.0.0"
|
bind_address: "0.0.0.0"
|
||||||
method: "GET"
|
method: "GET"
|
||||||
|
|
||||||
# Disable bot detection for internal API use
|
# Disable bot detection completely
|
||||||
redis:
|
redis:
|
||||||
url: false
|
url: false
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user