diff --git a/compose/relay/mn.external_urls.txt b/compose/relay/mn.external_urls.txt index e79f29e..f6d912c 100644 --- a/compose/relay/mn.external_urls.txt +++ b/compose/relay/mn.external_urls.txt @@ -1,3 +1,3 @@ -wss://nostr.satstralia.com +wss://nostr.robosats.org wss://relay.damus.io wss://freelay.sovbit.host diff --git a/compose/relay/sync_external.sh b/compose/relay/sync_external.sh index e917d00..b67bba3 100644 --- a/compose/relay/sync_external.sh +++ b/compose/relay/sync_external.sh @@ -1,8 +1,8 @@ #!/bin/sh -filters_external='{"kinds":[38383]}' +filters_sync="{\"kinds\":[38383],\"since\":$(date -d "2 weeks ago" +%s)}" timeout_duration="15s" while IFS= read -r line; do - timeout "$timeout_duration" /app/strfry --config /etc/strfry.conf sync ${line} --filter "$filters_external" --dir both + timeout "$timeout_duration" /app/strfry --config /etc/strfry.conf sync ${line} --filter "$filters_sync" --dir both done < /app/external_urls.txt diff --git a/compose/relay/sync_federation.sh b/compose/relay/sync_federation.sh index 2a8b98b..abd2bee 100644 --- a/compose/relay/sync_federation.sh +++ b/compose/relay/sync_federation.sh @@ -1,8 +1,11 @@ #!/bin/sh -filters_federation='{"kinds":[38383, 31986, 1059]}' +filters_sync="{\"kinds\":[38383,31986,1059],\"since\":$(date -d "4 weeks ago" +%s)}" +filter_delete="{\"until\":$(date -d "4 weeks ago" +%s)}" timeout_duration="15s" +timeout "$timeout_duration" /app/strfry --config /etc/strfry.conf delete --filter "$filter_delete" + while IFS= read -r line; do - timeout "$timeout_duration" /app/strfry --config /etc/strfry.conf sync ${line} --filter "$filters_federation" --dir both + timeout "$timeout_duration" /app/strfry --config /etc/strfry.conf sync ${line} --filter "$filters_sync" --dir both done < /app/federation_urls.txt diff --git a/compose/relay/tn.external_urls.txt b/compose/relay/tn.external_urls.txt index e79f29e..f6d912c 100644 --- a/compose/relay/tn.external_urls.txt +++ b/compose/relay/tn.external_urls.txt @@ -1,3 +1,3 @@ -wss://nostr.satstralia.com +wss://nostr.robosats.org wss://relay.damus.io wss://freelay.sovbit.host