mirror of
https://github.com/RoboSats/robosats.git
synced 2025-01-18 12:11:35 +00:00
Torify strfry sync
This commit is contained in:
parent
334587b212
commit
7accfcf9a9
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
3
docker/strfry/sync.sh
Executable 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
|
Loading…
Reference in New Issue
Block a user