A from-scratch atproto PDS implementation in Python (mirrors https://github.com/DavidBuchanan314/millipds)
at main 23 lines 782 B view raw
1#!/bin/sh 2 3PDS_HOST="192.168.0.97:8123" 4PLC_HOST="http://192.168.0.73:2582" 5RELAY_HOST="http://192.168.0.73:2470" 6HANDLE="bob.test" 7 8rm -rf ./data 9 10millipds init millipds.test 11millipds config --pds_pfx=http://$PDS_HOST 12 13 14# generates keys and publishes to PLC 15./create_identity.sh $HANDLE http://$PDS_HOST $PLC_HOST 16DID_PLC=$(cat "${HANDLE}_did.txt") 17 18# create the account using the generated identity 19millipds account create $DID_PLC $HANDLE --unsafe_password="lol" --signing_key="${HANDLE}_repo_key.pem" 20 21#millipds run 22# curl --json '{"hostname": "http://192.168.0.97:8123"}' "http://192.168.0.73:2470/xrpc/com.atproto.sync.requestCrawl" 23# curl --json '{"hostname": "http://192.168.0.97:8123"}' "http://192.168.0.73:2470/admin/pds/requestCrawl" -H "Authorization: Bearer localdev"