📦➔🦋 Store and retrieve files on the Atmosphere
35
fork

Configure Feed

Select the types of activity you want to include in your feed.

modify Jetstream default endpoint to zio.blue; add fallbacks for Jetstream

Ducky 11f9c3c0 4c5e998d

+24 -3
+2 -1
src/commands/help.sh
··· 150 150 Do not error when running on an unsupported OS\n 151 151 ${_envvar_prefix}_ENDPOINT_APPVIEW <url> (default: ${_endpoint_appview_default}$([[ $_endpoint_appview_default == *"zio.blue" ]] && echo "²")) 152 152 Endpoint of the Bluesky (or compatible) AppView 153 - ${_envvar_prefix}_ENDPOINT_JETSTREAM <url> (default: $_endpoint_jetstream_default) 153 + ${_envvar_prefix}_ENDPOINT_JETSTREAM <url> (default: $_endpoint_jetstream_default$([[ $_endpoint_jetstream_default == *"zio.blue" ]] && echo "²")) 154 154 Endpoint of the Jetstream relay 155 155 ${_envvar_prefix}_ENDPOINT_PDS <url> 156 156 Endpoint of the PDS ··· 162 162 Disable the (hardcoded) usage of various Bluesky PBC-hosted fallbacks 163 163 if/when required. Currently, there are fallbacks for: 164 164 * ${_envvar_prefix}_ENDPOINT_APPVIEW ($_endpoint_appview_fallback) 165 + * ${_envvar_prefix}_ENDPOINT_JETSTREAM ($_endpoint_jetstream_fallback) 165 166 * ${_envvar_prefix}_ENDPOINT_PLC_DIRECTORY ($_endpoint_plc_directory_fallback)\n 166 167 ${_envvar_prefix}_DEBUG <bool¹> (default: $_debug_default) 167 168 Print debug outputs
+1 -1
src/commands/release.sh
··· 16 16 atfile.util.check_prog "md5sum" 17 17 atfile.util.check_prog "shellcheck" 18 18 19 - id="$(tr -dc A-Za-z0-9 </dev/urandom | head -c 13; echo)" 19 + id="$(atfile.util.get_random 13)" 20 20 commit_author="$(git config user.name) <$(git config user.email)>" 21 21 commit_hash="$(git rev-parse HEAD)" 22 22 commit_date="$(git show --no-patch --format=%ci "$commit_hash")"
+2 -1
src/entry.sh
··· 76 76 _enable_fingerprint_default=0 77 77 _enable_update_git_clobber_default=0 78 78 _endpoint_appview_default="https://bsky.zio.blue" 79 - _endpoint_jetstream_default="wss://jetstream.atproto.tools" 79 + _endpoint_jetstream_default="wss://stream.zio.blue" 80 80 _endpoint_plc_directory_default="https://plc.zio.blue" 81 81 _fmt_blob_url_default="[server]/xrpc/com.atproto.sync.getBlob?did=[did]&cid=[cid]" 82 82 _fmt_out_file_default="[key]__[name]" ··· 94 94 #### Fallbacks 95 95 96 96 _endpoint_appview_fallback="https://api.bsky.app" 97 + _endpoint_jetstream_fallback="$(atfile.util.get_random_pbc_jetstream)" 97 98 _endpoint_plc_directory_fallback="https://plc.directory" 98 99 _max_list_fallback=100 99 100
+19
src/shared/util.sh
··· 699 699 fi 700 700 } 701 701 702 + function atfile.util.get_random() { 703 + amount="$1" 704 + [[ -z "$amount" ]] && amount="6" 705 + echo "$(tr -dc A-Za-z0-9 </dev/urandom | head -c $amount; echo)" 706 + } 707 + 708 + function atfile.util.get_random_pbc_jetstream() { 709 + pbc_jetstreams=( 710 + "jetstream1.us-east" 711 + "jetstream2.us-east" 712 + "jetstream1.us-west" 713 + "jetstream2.us-east" 714 + ) 715 + 716 + pbc_jetstream="${pbc_jetstreams[ $RANDOM % ${#pbc_jetstreams[@]} ]}" 717 + 718 + echo "https://$pbc_jetstream.bsky.network" 719 + } 720 + 702 721 function atfile.util.get_realpath() { 703 722 path="$1" 704 723