mirror of
https://github.com/R0m1k3/Priceflow.git
synced 2026-10-13 18:26:20 +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_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
|
||||
|
||||
@@ -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
|
||||
# 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
|
||||
|
||||
Reference in new issue
Block a user