From ae4502903ce80ffd35dca026c2bfaa31631845a3 Mon Sep 17 00:00:00 2001 From: koalasat Date: Mon, 22 Jul 2024 14:54:03 +0200 Subject: [PATCH] Filter as variable in sync.sh --- docker/strfry/Dockerfile | 3 ++- docker/strfry/sync.sh | 10 ++++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/docker/strfry/Dockerfile b/docker/strfry/Dockerfile index 5d42b72d..ef70fccd 100644 --- a/docker/strfry/Dockerfile +++ b/docker/strfry/Dockerfile @@ -2,7 +2,8 @@ FROM dockurr/strfry:0.9.6 RUN apk add --no-cache dcron torsocks -RUN echo "TorAddress 127.0.0.1:9050" > /etc/tor/torsocks.conf +RUN echo "TorAddress 127.0.0.1" >> /etc/tor/torsocks.conf +RUN echo "TorPort 9050" >> /etc/tor/torsocks.conf ADD . /app diff --git a/docker/strfry/sync.sh b/docker/strfry/sync.sh index b0b67d72..efd16094 100755 --- a/docker/strfry/sync.sh +++ b/docker/strfry/sync.sh @@ -1,6 +1,8 @@ #!/bin/sh -/app/strfry --config /app/strfry.conf sync ws://ngdk7ocdzmz5kzsysa3om6du7ycj2evxp2f2olfkyq37htx3gllwp2yd.onion/nostr --filter '{"kinds":[38383]}' --dir both >> /var/log/cron.log 2>&1 -/app/strfry --config /app/strfry.conf sync ws://satstraoq35jffvkgpfoqld32nzw2siuvowanruindbfojowpwsjdgad.onion/nostr --filter '{"kinds":[38383]}' --dir both >> /var/log/cron.log 2>&1 -/app/strfry --config /app/strfry.conf sync ws://4t4jxmivv6uqej6xzx2jx3fxh75gtt65v3szjoqmc4ugdlhipzdat6yd.onion/nostr --filter '{"kinds":[38383]}' --dir both >> /var/log/cron.log 2>&1 -/app/strfry --config /app/strfry.conf sync ws://mmhaqzuirth5rx7gl24d4773lknltjhik57k7ahec5iefktezv4b3uid.onion/nostr --filter '{"kinds":[38383]}' --dir both >> /var/log/cron.log 2>&1 +filters='{"kinds":[38383]}' + +/app/strfry --config /app/strfry.conf sync ws://ngdk7ocdzmz5kzsysa3om6du7ycj2evxp2f2olfkyq37htx3gllwp2yd.onion/nostr --filter "$filters" --dir both >> /var/log/cron.log 2>&1 +/app/strfry --config /app/strfry.conf sync ws://satstraoq35jffvkgpfoqld32nzw2siuvowanruindbfojowpwsjdgad.onion/nostr --filter "$filters" --dir both >> /var/log/cron.log 2>&1 +/app/strfry --config /app/strfry.conf sync ws://4t4jxmivv6uqej6xzx2jx3fxh75gtt65v3szjoqmc4ugdlhipzdat6yd.onion/nostr --filter "$filters" --dir both >> /var/log/cron.log 2>&1 +/app/strfry --config /app/strfry.conf sync ws://mmhaqzuirth5rx7gl24d4773lknltjhik57k7ahec5iefktezv4b3uid.onion/nostr --filter "$filters" --dir both >> /var/log/cron.log 2>&1