Torify strfry sync

This commit is contained in:
koalasat 2024-07-20 15:03:04 +02:00
parent 334587b212
commit 7accfcf9a9
No known key found for this signature in database
GPG Key ID: 2F7F61C6146AB157
4 changed files with 8 additions and 2 deletions

View File

@ -232,6 +232,7 @@ services:
restart: unless-stopped
volumes:
- ./docker/strfry/strfry.conf:/app/strfry.conf
- ./docker/strfry/sync.sh:/app/sync.sh
- ./node/strfry/db:/app/strfry-db
- ./node/strfry/log/:/var/log/
network_mode: service:tor

View File

@ -1,6 +1,8 @@
FROM dockurr/strfry:0.9.6
RUN apk add --no-cache dcron curl iproute2
RUN apk add --no-cache dcron torsocks
RUN echo "TorAddress 127.0.0.1:9050" > /etc/tor/torsocks.conf
ADD . /app

View File

@ -21,4 +21,4 @@
# For more information see the manual pages of crontab(5) and cron(8)
#
# m h dom mon dow command
*/1 * * * * /app/strfry --config /app/strfry.conf sync wss://nostr.satstralia.com --filter '{"kinds":[38383]}' --dir both >> /var/log/cron.log 2>&1
*/1 * * * * torsocks /app/sync.sh

3
docker/strfry/sync.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
/app/strfry --config /app/strfry.conf sync wss://nostr.satstralia.com --filter '{"kinds":[38383]}' --dir both >> /var/log/cron.log 2>&1