mirror of
https://github.com/R0m1k3/Priceflow.git
synced 2026-10-12 01:39:25 +02:00
fix: Mount entire searxng directory instead of individual files
Simple and robust solution: - Mount ./searxng:/etc/searxng:rw (entire directory) - No entrypoint/command overrides needed - Both settings.yml and limiter.toml are included - SearXNG uses its default entrypoint
This commit is contained in:
1 file changed
+1
-14
+1
-14
@@ -61,20 +61,7 @@ services:
|
||||
- SEARXNG_BASE_URL=http://searxng:8080
|
||||
- SEARXNG_SECRET=priceflow-searxng-secret
|
||||
volumes:
|
||||
- ./searxng/settings.yml:/etc/searxng/settings.yml:ro
|
||||
entrypoint: /bin/sh
|
||||
command:
|
||||
- -c
|
||||
- |
|
||||
rm -rf /etc/searxng/limiter.toml
|
||||
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", "172.16.0.0/12", "192.168.0.0/16", "10.0.0.0/8", "::/0"]
|
||||
block_ip = []
|
||||
EOF
|
||||
exec /usr/local/searxng/dockerfiles/docker-entrypoint.sh
|
||||
- ./searxng:/etc/searxng:rw
|
||||
networks:
|
||||
- nginx_default
|
||||
|
||||
|
||||
Reference in new issue
Block a user