Filter as variable in sync.sh

This commit is contained in:
koalasat 2024-07-22 14:54:03 +02:00
parent c28ba4afc8
commit ae4502903c
No known key found for this signature in database
GPG Key ID: 2F7F61C6146AB157
2 changed files with 8 additions and 5 deletions

View File

@ -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

View File

@ -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