mirror of
https://github.com/R0m1k3/Priceflow.git
synced 2026-10-23 23:28:12 +02:00
Merge pull request #23 from R0m1k3/claude/design-product-search-01Ea9dWZqZpuKFwBwVmp26PG
fix: Mount entire SearXNG config directory to avoid file/directory is…
This commit is contained in:
3 files changed
+5
-35
No files matched your search
+2
-2
@@ -61,8 +61,8 @@ services:
|
|||||||
- SEARXNG_BASE_URL=http://searxng:8080
|
- SEARXNG_BASE_URL=http://searxng:8080
|
||||||
- SEARXNG_SECRET=priceflow-searxng-secret
|
- SEARXNG_SECRET=priceflow-searxng-secret
|
||||||
volumes:
|
volumes:
|
||||||
- ./searxng/settings.yml:/etc/searxng/settings.yml:ro
|
# Mount entire config directory to avoid file/directory issues
|
||||||
- ./searxng/limiter.toml:/etc/searxng/limiter.toml:ro
|
- ./searxng:/etc/searxng:rw
|
||||||
dns:
|
dns:
|
||||||
- 8.8.8.8
|
- 8.8.8.8
|
||||||
- 8.8.4.4
|
- 8.8.4.4
|
||||||
|
|||||||
@@ -1,27 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
# Custom entrypoint for SearXNG - creates limiter.toml before starting
|
|
||||||
|
|
||||||
# Remove any existing limiter.toml (file or directory)
|
|
||||||
rm -rf /etc/searxng/limiter.toml
|
|
||||||
|
|
||||||
# Create limiter.toml to disable bot detection
|
|
||||||
cat > /etc/searxng/limiter.toml << 'EOF'
|
|
||||||
[botdetection.ip_limit]
|
|
||||||
link_token = false
|
|
||||||
|
|
||||||
[botdetection.ip_lists]
|
|
||||||
pass_ip = [
|
|
||||||
"0.0.0.0/0",
|
|
||||||
"127.0.0.0/8",
|
|
||||||
"10.0.0.0/8",
|
|
||||||
"172.16.0.0/12",
|
|
||||||
"192.168.0.0/16",
|
|
||||||
"::/0"
|
|
||||||
]
|
|
||||||
block_ip = []
|
|
||||||
EOF
|
|
||||||
|
|
||||||
echo "limiter.toml created successfully"
|
|
||||||
|
|
||||||
# Execute the original entrypoint
|
|
||||||
exec /usr/local/searxng/dockerfiles/docker-entrypoint.sh
|
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
# SearXNG settings for PriceFlow
|
# SearXNG settings for PriceFlow
|
||||||
|
# Bot detection completely disabled for internal API use
|
||||||
|
|
||||||
use_default_settings: true
|
use_default_settings: true
|
||||||
|
|
||||||
@@ -10,13 +11,8 @@ 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 Redis (used for rate limiting)
|
||||||
redis:
|
redis:
|
||||||
url: false
|
url: false
|
||||||
|
|
||||||
@@ -28,6 +24,7 @@ search:
|
|||||||
- html
|
- html
|
||||||
- json
|
- json
|
||||||
|
|
||||||
|
# Enable search engines
|
||||||
engines:
|
engines:
|
||||||
- name: google
|
- name: google
|
||||||
engine: google
|
engine: google
|
||||||
|
|||||||
Reference in new issue
Block a user