mirror of
https://github.com/RoboSats/robosats-deploy.git
synced 2025-08-06 18:10:07 +00:00
executable sync
This commit is contained in:
@ -148,7 +148,7 @@ services:
|
|||||||
container_name: strfry${SUFFIX}
|
container_name: strfry${SUFFIX}
|
||||||
restart: always
|
restart: always
|
||||||
volumes:
|
volumes:
|
||||||
- ${STRFRY_SYNC}:/app/sync.sh:ro
|
- ${STRFRY_URLS}:/app/onion_urls.txt:ro
|
||||||
- ${STRFRY_CONF}:/etc/strfry.conf:ro
|
- ${STRFRY_CONF}:/etc/strfry.conf:ro
|
||||||
- ${STRFRY_DATA}/db:/app/strfry-db:rw
|
- ${STRFRY_DATA}/db:/app/strfry-db:rw
|
||||||
network_mode: service:tor
|
network_mode: service:tor
|
||||||
|
@ -29,7 +29,7 @@ NGINX_CONFD='./nginx/tn.conf.d'
|
|||||||
WELLKNOWN='./nginx/tn.well-known'
|
WELLKNOWN='./nginx/tn.well-known'
|
||||||
|
|
||||||
STRFRY_CONF='./env-sample/lndtn/strfry.conf'
|
STRFRY_CONF='./env-sample/lndtn/strfry.conf'
|
||||||
STRFRY_SYNC='./strfry/tn.sync.sh'
|
STRFRY_URLS='./strfry/tn.onion_urls.txt'
|
||||||
STRFRY_DATA='/custom_path/testnet/strfry'
|
STRFRY_DATA='/custom_path/testnet/strfry'
|
||||||
|
|
||||||
# Port and number of HTTP server workers for the robosats backend
|
# Port and number of HTTP server workers for the robosats backend
|
||||||
|
@ -9,6 +9,7 @@ RUN echo "TorPort 9050" >> /etc/tor/torsocks.conf
|
|||||||
COPY crontab /tmp/crontab
|
COPY crontab /tmp/crontab
|
||||||
RUN cat /tmp/crontab > /etc/crontabs/root
|
RUN cat /tmp/crontab > /etc/crontabs/root
|
||||||
|
|
||||||
|
COPY sync.sh /etc/strfry/sync.sh
|
||||||
COPY entrypoint.sh /etc/strfry/entrypoint.sh
|
COPY entrypoint.sh /etc/strfry/entrypoint.sh
|
||||||
|
|
||||||
RUN chmod +x /etc/strfry/entrypoint.sh
|
RUN chmod +x /etc/strfry/entrypoint.sh
|
||||||
|
@ -21,4 +21,4 @@
|
|||||||
# For more information see the manual pages of crontab(5) and cron(8)
|
# For more information see the manual pages of crontab(5) and cron(8)
|
||||||
#
|
#
|
||||||
# m h dom mon dow command
|
# m h dom mon dow command
|
||||||
*/1 * * * * torsocks /app/sync.sh
|
*/1 * * * * torsocks /etc/strfry/sync.sh
|
||||||
|
4
compose/strfry/mn.onion_urls.txt
Normal file
4
compose/strfry/mn.onion_urls.txt
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
testraliar7xkhos2gipv2k65obykofb4jqzl5l4danfryacifi4t7qd.onion
|
||||||
|
jpp3w5tpxtyg6lifonisdszpriiapszzem4wod2zsdweyfenlsxeoxid.onion
|
||||||
|
ghbtv7lhoyhomyir4xvxaeyqgx4ylxksia343jaat3njqqlkqpdjqcyd.onion
|
||||||
|
wsjyhbashc4zrrex6vijpryujggbka5plry2o62dxqoz3pxinblnj4ad.onion
|
@ -1,8 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
filters='{"kinds":[38383]}'
|
|
||||||
|
|
||||||
/app/strfry --config /etc/strfry.conf sync ws://ngdk7ocdzmz5kzsysa3om6du7ycj2evxp2f2olfkyq37htx3gllwp2yd.onion/nostr --filter "$filters" --dir both
|
|
||||||
/app/strfry --config /etc/strfry.conf sync ws://satstraoq35jffvkgpfoqld32nzw2siuvowanruindbfojowpwsjdgad.onion/nostr --filter "$filters" --dir both
|
|
||||||
/app/strfry --config /etc/strfry.conf sync ws://4t4jxmivv6uqej6xzx2jx3fxh75gtt65v3szjoqmc4ugdlhipzdat6yd.onion/nostr --filter "$filters" --dir both
|
|
||||||
/app/strfry --config /etc/strfry.conf sync ws://mmhaqzuirth5rx7gl24d4773lknltjhik57k7ahec5iefktezv4b3uid.onion/nostr --filter "$filters" --dir both
|
|
7
compose/strfry/sync.sh
Normal file
7
compose/strfry/sync.sh
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
filters='{"kinds":[38383]}'
|
||||||
|
|
||||||
|
while IFS= read -r line; do
|
||||||
|
/app/strfry --config /etc/strfry.conf sync ws://${line}/nostr --filter "$filters" --dir both
|
||||||
|
done < /app/onion_urls.txt
|
4
compose/strfry/tn.onion_urls.txt
Normal file
4
compose/strfry/tn.onion_urls.txt
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
testraliar7xkhos2gipv2k65obykofb4jqzl5l4danfryacifi4t7qd.onion
|
||||||
|
jpp3w5tpxtyg6lifonisdszpriiapszzem4wod2zsdweyfenlsxeoxid.onion
|
||||||
|
ghbtv7lhoyhomyir4xvxaeyqgx4ylxksia343jaat3njqqlkqpdjqcyd.onion
|
||||||
|
wsjyhbashc4zrrex6vijpryujggbka5plry2o62dxqoz3pxinblnj4ad.onion
|
@ -1,8 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
filters='{"kinds":[38383]}'
|
|
||||||
|
|
||||||
/app/strfry --config /etc/strfry.conf sync ws://testraliar7xkhos2gipv2k65obykofb4jqzl5l4danfryacifi4t7qd.onion/nostr --filter "$filters" --dir both
|
|
||||||
/app/strfry --config /etc/strfry.conf sync ws://jpp3w5tpxtyg6lifonisdszpriiapszzem4wod2zsdweyfenlsxeoxid.onion/nostr --filter "$filters" --dir both
|
|
||||||
/app/strfry --config /etc/strfry.conf sync ws://ghbtv7lhoyhomyir4xvxaeyqgx4ylxksia343jaat3njqqlkqpdjqcyd.onion/nostr --filter "$filters" --dir both
|
|
||||||
/app/strfry --config /etc/strfry.conf sync ws://wsjyhbashc4zrrex6vijpryujggbka5plry2o62dxqoz3pxinblnj4ad.onion/nostr --filter "$filters" --dir both
|
|
Reference in New Issue
Block a user