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:
LogiFlow authored and GitHub committed 2025-11-22 15:30:21 +01:00
commit e60fc1efb8
3 files changed
+5 -35

No files matched your search

+2 -2
View File
@@ -61,8 +61,8 @@ services:
- SEARXNG_BASE_URL=http://searxng:8080
- SEARXNG_SECRET=priceflow-searxng-secret
volumes:
- ./searxng/settings.yml:/etc/searxng/settings.yml:ro
- ./searxng/limiter.toml:/etc/searxng/limiter.toml:ro
# Mount entire config directory to avoid file/directory issues
- ./searxng:/etc/searxng:rw
dns:
- 8.8.8.8
- 8.8.4.4
-27
View File
@@ -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
+3 -6
View File
@@ -1,4 +1,5 @@
# SearXNG settings for PriceFlow
# Bot detection completely disabled for internal API use
use_default_settings: true
@@ -10,13 +11,8 @@ server:
port: 8080
bind_address: "0.0.0.0"
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:
url: false
@@ -28,6 +24,7 @@ search:
- html
- json
# Enable search engines
engines:
- name: google
engine: google