mirror of
https://github.com/R0m1k3/Priceflow.git
synced 2026-10-24 15:48:11 +02:00
Merge pull request #18 from R0m1k3/claude/design-product-search-01Ea9dWZqZpuKFwBwVmp26PG
fix: SearXNG startup + always visible edit buttons
This commit is contained in:
2 files changed
+14
-4
No files matched your search
+11
-1
@@ -61,7 +61,17 @@ services:
|
|||||||
- SEARXNG_BASE_URL=http://searxng:8080
|
- SEARXNG_BASE_URL=http://searxng:8080
|
||||||
- SEARXNG_SECRET=priceflow-searxng-secret
|
- SEARXNG_SECRET=priceflow-searxng-secret
|
||||||
volumes:
|
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:
|
networks:
|
||||||
- nginx_default
|
- nginx_default
|
||||||
|
|
||||||
|
|||||||
@@ -681,11 +681,11 @@ export default function Settings() {
|
|||||||
</h3>
|
</h3>
|
||||||
<p className="text-sm text-muted-foreground mt-1">{site.domain}</p>
|
<p className="text-sm text-muted-foreground mt-1">{site.domain}</p>
|
||||||
</div>
|
</div>
|
||||||
<div className="flex items-center gap-1 opacity-0 group-hover:opacity-100 transition-opacity">
|
<div className="flex items-center gap-1">
|
||||||
<Button variant="ghost" size="icon" className="h-8 w-8" onClick={() => editSite(site)}>
|
<Button variant="ghost" size="icon" className="h-8 w-8" onClick={() => editSite(site)} title="Modifier">
|
||||||
<Edit2 className="h-4 w-4" />
|
<Edit2 className="h-4 w-4" />
|
||||||
</Button>
|
</Button>
|
||||||
<Button variant="ghost" size="icon" className="h-8 w-8 text-destructive hover:text-destructive" onClick={() => deleteSite(site.id)}>
|
<Button variant="ghost" size="icon" className="h-8 w-8 text-destructive hover:text-destructive" onClick={() => deleteSite(site.id)} title="Supprimer">
|
||||||
<Trash2 className="h-4 w-4" />
|
<Trash2 className="h-4 w-4" />
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in new issue
Block a user