File tree Expand file tree Collapse file tree 9 files changed +19
-19
lines changed Expand file tree Collapse file tree 9 files changed +19
-19
lines changed Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ services:
148148 container_name : strfry${SUFFIX}
149149 restart : always
150150 volumes :
151- - ${STRFRY_SYNC }:/app/sync.sh :ro
151+ - ${STRFRY_URLS }:/app/onion_urls.txt :ro
152152 - ${STRFRY_CONF}:/etc/strfry.conf:ro
153153 - ${STRFRY_DATA}/db:/app/strfry-db:rw
154154 network_mode : service:tor
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ NGINX_CONFD='./nginx/tn.conf.d'
2929WELLKNOWN = ' ./nginx/tn.well-known'
3030
3131STRFRY_CONF = ' ./env-sample/lndtn/strfry.conf'
32- STRFRY_SYNC = ' ./strfry/tn.sync.sh '
32+ STRFRY_URLS = ' ./strfry/tn.onion_urls.txt '
3333STRFRY_DATA = ' /custom_path/testnet/strfry'
3434
3535# Port and number of HTTP server workers for the robosats backend
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ RUN echo "TorPort 9050" >> /etc/tor/torsocks.conf
99COPY crontab /tmp/crontab
1010RUN cat /tmp/crontab > /etc/crontabs/root
1111
12+ COPY sync.sh /etc/strfry/sync.sh
1213COPY entrypoint.sh /etc/strfry/entrypoint.sh
1314
1415RUN chmod +x /etc/strfry/entrypoint.sh
Original file line number Diff line number Diff line change 2121# For more information see the manual pages of crontab(5) and cron(8)
2222#
2323# m h dom mon dow command
24- */1 * * * * torsocks /app /sync.sh
24+ */1 * * * * torsocks /etc/strfry /sync.sh
Original file line number Diff line number Diff line change 1+ testraliar7xkhos2gipv2k65obykofb4jqzl5l4danfryacifi4t7qd.onion
2+ jpp3w5tpxtyg6lifonisdszpriiapszzem4wod2zsdweyfenlsxeoxid.onion
3+ ghbtv7lhoyhomyir4xvxaeyqgx4ylxksia343jaat3njqqlkqpdjqcyd.onion
4+ wsjyhbashc4zrrex6vijpryujggbka5plry2o62dxqoz3pxinblnj4ad.onion
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+
3+ filters=' {"kinds":[38383]}'
4+
5+ while IFS= read -r line; do
6+ /app/strfry --config /etc/strfry.conf sync ws://${line} /nostr --filter " $filters " --dir both
7+ done < /app/onion_urls.txt
Original file line number Diff line number Diff line change 1+ testraliar7xkhos2gipv2k65obykofb4jqzl5l4danfryacifi4t7qd.onion
2+ jpp3w5tpxtyg6lifonisdszpriiapszzem4wod2zsdweyfenlsxeoxid.onion
3+ ghbtv7lhoyhomyir4xvxaeyqgx4ylxksia343jaat3njqqlkqpdjqcyd.onion
4+ wsjyhbashc4zrrex6vijpryujggbka5plry2o62dxqoz3pxinblnj4ad.onion
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments