From 2c3753d7e44cd4167d723b8df35ee39002c464f2 Mon Sep 17 00:00:00 2001 From: koalasat Date: Wed, 24 Jul 2024 18:10:27 +0200 Subject: [PATCH] Tesnet sync --- compose/docker-compose.yml | 2 +- compose/env-sample/lndtn/compose.env | 1 + compose/strfry/{sync.sh => mn.sync.sh} | 1 - compose/strfry/tn.sync.sh | 6 ++++++ 4 files changed, 8 insertions(+), 2 deletions(-) rename compose/strfry/{sync.sh => mn.sync.sh} (85%) create mode 100644 compose/strfry/tn.sync.sh diff --git a/compose/docker-compose.yml b/compose/docker-compose.yml index 91d2791..78a0945 100644 --- a/compose/docker-compose.yml +++ b/compose/docker-compose.yml @@ -148,7 +148,7 @@ services: container_name: strfry${SUFFIX} restart: always volumes: - - ./strfry/sync.sh:/app/sync.sh + - ${STRFRY_SYNC}:/app/sync.sh - ${STRFRY_CONF}:/etc/strfry.conf - ${STRFRY_DATA}/db:/app/strfry-db - ${STRFRY_DATA}/log/:/var/log/ diff --git a/compose/env-sample/lndtn/compose.env b/compose/env-sample/lndtn/compose.env index a0c5a1d..aa22388 100644 --- a/compose/env-sample/lndtn/compose.env +++ b/compose/env-sample/lndtn/compose.env @@ -29,6 +29,7 @@ NGINX_CONFD='./nginx/tn.conf.d' WELLKNOWN='./nginx/tn.well-known' STRFRY_CONF='./env-sample/lndtn/strfry.conf' +STRFRY_SYNC='./strfry/tn.sync.sh' STRFRY_DATA='/custom_path/testnet/strfry' # Port and number of HTTP server workers for the robosats backend diff --git a/compose/strfry/sync.sh b/compose/strfry/mn.sync.sh similarity index 85% rename from compose/strfry/sync.sh rename to compose/strfry/mn.sync.sh index fd5af18..debbd26 100644 --- a/compose/strfry/sync.sh +++ b/compose/strfry/mn.sync.sh @@ -2,7 +2,6 @@ filters='{"kinds":[38383]}' -/app/strfry --config /etc/strfry.conf sync wss://nostr.satstralia.com --filter "$filters" --dir both >> /var/log/cron.log 2>&1 /app/strfry --config /etc/strfry.conf sync ws://ngdk7ocdzmz5kzsysa3om6du7ycj2evxp2f2olfkyq37htx3gllwp2yd.onion/nostr --filter "$filters" --dir both >> /var/log/cron.log 2>&1 /app/strfry --config /etc/strfry.conf sync ws://satstraoq35jffvkgpfoqld32nzw2siuvowanruindbfojowpwsjdgad.onion/nostr --filter "$filters" --dir both >> /var/log/cron.log 2>&1 /app/strfry --config /etc/strfry.conf sync ws://4t4jxmivv6uqej6xzx2jx3fxh75gtt65v3szjoqmc4ugdlhipzdat6yd.onion/nostr --filter "$filters" --dir both >> /var/log/cron.log 2>&1 diff --git a/compose/strfry/tn.sync.sh b/compose/strfry/tn.sync.sh new file mode 100644 index 0000000..b69a749 --- /dev/null +++ b/compose/strfry/tn.sync.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +filters='{"kinds":[38383]}' + +/app/strfry --config /etc/strfry.conf sync wss://nostr.satstralia.com --filter "$filters" --dir both >> /var/log/cron.log 2>&1 +/app/strfry --config /etc/strfry.conf sync ws://testraliar7xkhos2gipv2k65obykofb4jqzl5l4danfryacifi4t7qd.onion/nostr --filter "$filters" --dir both >> /var/log/cron.log 2>&1