From 41ccfb6610bc787956ad2e62bfb000e88bd0528a Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 22 Nov 2025 13:38:37 +0000 Subject: [PATCH] fix: SearXNG startup + always visible edit buttons SearXNG: - Use command override to rm -rf limiter.toml before recreating it - This ensures any directory is removed before creating the file - Mount only settings.yml, create limiter.toml dynamically UI: - Remove opacity-0 from site edit/delete buttons - Buttons are now always visible (not just on hover) - Added title attributes for accessibility --- docker-compose.yml | 12 +++++++++++- frontend/src/pages/Settings.jsx | 6 +++--- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 8068443..f30bd08 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -61,7 +61,17 @@ services: - SEARXNG_BASE_URL=http://searxng:8080 - SEARXNG_SECRET=priceflow-searxng-secret volumes: - - ./searxng:/etc/searxng:rw + - ./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 + " networks: - nginx_default diff --git a/frontend/src/pages/Settings.jsx b/frontend/src/pages/Settings.jsx index d982d06..4df1697 100644 --- a/frontend/src/pages/Settings.jsx +++ b/frontend/src/pages/Settings.jsx @@ -681,11 +681,11 @@ export default function Settings() {

{site.domain}

-
- -