mirror of
https://github.com/R0m1k3/Priceflow.git
synced 2026-10-18 04:38:41 +02:00
fix: SearXNG printf command + edit site modal
SearXNG: - Use proper command list format instead of shell string - Use printf with \n for proper newlines in limiter.toml - Use exec to properly start the entrypoint Edit Site Modal: - Add Dialog component import - Add siteModalOpen and editSiteData state - Create proper modal with form for editing sites - Modal opens when clicking edit button - All site fields editable in modal
This commit is contained in:
2 files changed
+110
-12
No files matched your search
+7
-10
@@ -62,16 +62,13 @@ services:
|
||||
- SEARXNG_SECRET=priceflow-searxng-secret
|
||||
volumes:
|
||||
- ./searxng/settings.yml:/etc/searxng/settings.yml:ro
|
||||
command: >
|
||||
sh -c "
|
||||
rm -rf /etc/searxng/limiter.toml &&
|
||||
echo '[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 = []' > /etc/searxng/limiter.toml &&
|
||||
/usr/local/searxng/dockerfiles/docker-entrypoint.sh
|
||||
"
|
||||
command:
|
||||
- sh
|
||||
- -c
|
||||
- |
|
||||
rm -rf /etc/searxng/limiter.toml
|
||||
printf '[botdetection.ip_limit]\nlink_token = false\n\n[botdetection.ip_lists]\npass_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"]\nblock_ip = []\n' > /etc/searxng/limiter.toml
|
||||
exec /usr/local/searxng/dockerfiles/docker-entrypoint.sh
|
||||
networks:
|
||||
- nginx_default
|
||||
|
||||
|
||||
Reference in new issue
Block a user