diff --git a/compose/docker-compose.yml b/compose/docker-compose.yml index 546986f..20d62d9 100644 --- a/compose/docker-compose.yml +++ b/compose/docker-compose.yml @@ -148,8 +148,8 @@ services: container_name: strfry${SUFFIX} restart: always volumes: - - ${STRFRY_URL_FILE}/external_urls.txt:/app/external_urls.txt:ro - - ${STRFRY_URL_FILE}/federation_urls.txt:/app/federation_urls.txt:ro + - ${STRFRY_URLS_EXTERNAL}:/app/external_urls.txt:ro + - ${STRFRY_URLS_FEDERATION}:/app/federation_urls.txt:ro - ${STRFRY_CONF}:/etc/strfry.conf:ro - ${STRFRY_DATA}/db:/app/strfry-db:rw network_mode: service:tor diff --git a/compose/env-sample/lndtn/compose.env b/compose/env-sample/lndtn/compose.env index 3ed1431..1430810 100644 --- a/compose/env-sample/lndtn/compose.env +++ b/compose/env-sample/lndtn/compose.env @@ -29,7 +29,8 @@ NGINX_CONFD='./nginx/tn.conf.d' WELLKNOWN='./nginx/tn.well-known' STRFRY_CONF='./env-sample/lndtn/strfry.conf' -STRFRY_URL_FILE='./strfry/' +STRFRY_URLS_EXTERNAL='./strfry/tn.external_urls.txt' +STRFRY_URLS_FEDERATION='./strfry/tn.federation_urls.txt' STRFRY_DATA='/custom_path/testnet/strfry' # Port and number of HTTP server workers for the robosats backend diff --git a/compose/strfry/mn.federation_urls .txt b/compose/strfry/mn.federation_urls.txt similarity index 100% rename from compose/strfry/mn.federation_urls .txt rename to compose/strfry/mn.federation_urls.txt diff --git a/compose/strfry/sync.sh b/compose/strfry/sync.sh index 377054b..ff9766d 100644 --- a/compose/strfry/sync.sh +++ b/compose/strfry/sync.sh @@ -1,14 +1,14 @@ #!/bin/sh -filters='{"kinds":[38383]}' +filters_external='{"kinds":[38383]}' while IFS= read -r line; do - /app/strfry --config /etc/strfry.conf sync ${line} --filter "$filters" --dir both + /app/strfry --config /etc/strfry.conf sync ${line} --filter "$filters_external" --dir both done < /app/external_urls.txt -filters='{"kinds":[38383, 31986, 1059]}' +filters_federation='{"kinds":[38383, 31986, 1059]}' while IFS= read -r line; do - /app/strfry --config /etc/strfry.conf sync ${line} --filter "$filters" --dir both + /app/strfry --config /etc/strfry.conf sync ${line} --filter "$filters_federation" --dir both done < /app/federation_urls.txt diff --git a/compose/strfry/tn.external_urls.txt b/compose/strfry/tn.external_urls.txt new file mode 100644 index 0000000..1a6b634 --- /dev/null +++ b/compose/strfry/tn.external_urls.txt @@ -0,0 +1,5 @@ +wss://nostr.satstralia.com +wss://freelay.sovbit.host +wss://nostrvista.aaroniumii.com +wss://relay.damus.io +wss://relay.mostro.network \ No newline at end of file