Config files for my server. Except not my secrets

landing changes

vielle.dev 11feea85 68d77d01

verified
Changed files
+14 -34
landing
+13 -29
landing/heading.txt
··· 1 - | | 2 - | | 3 - | | 4 - +---#---------------------#---+ 5 - | [Used Car Salesman voice] | 6 - | Open Your | 7 - | __ ___ _ _ ___ | 8 - | | \ / \| \| |/ __| | 9 - | _ | - || - || || | | | 10 - | |_||__/ \___/|_|\_|\___| | 11 - | ___ _ _ ___ | 12 - | | __|| || | | __| | 13 - | | _| | || |_ | _| | 14 - | |_| |_||___||___| | 15 - | | 16 - | At dong.vielle.dev TODAY | 17 - | for a chance to win £50 off | 18 - | a purchase of 3 | 19 - | or more potatoes!! | 20 - +-----------------------------+ 21 - 22 - Welcome to my PDS! 23 - It's running off a pi on my floor 24 - and isnt always online at the time of writing. 25 26 - Invite codes are required 27 - DM me if you somehow trust this enough 28 29 - PDS Source: https://github.com/bluesky-social/atproto 30 - Setup Guide: https://vielle.dev/blog/pds-on-a-pi 31 - Protocol: https://atproto.com
··· 1 + __ ___ _ _ ___ 2 + | \ / \| \| |/ __| 3 + _ | - || - || || | | 4 + |_||__/ \___/|_|\_|\___| 5 + ___ _ _ ___ 6 + | __|| || | | __| 7 + | _| | || |_ | _| 8 + |_| |_||___||___| 9 10 + Runs off a pi on my desk :3 11 12 + PDS Source: https://github.com/bluesky-social/atproto/ 13 + Setup Guide: https://vielle.dev/blog/pds-on-a-pi/ 14 + Protocol: https://atproto.com/ 15 + .dong file: https://dongs.zip/
+1 -5
landing/landing.ts
··· 26 // type cast because no point validating for smthn like this 27 // real type has more info; not needed here 28 .then((res) => res.json() as Promise<{ repos: { did: string }[] }>) 29 - .then((res) => { 30 - console.log(res); 31 - return res; 32 - }) 33 .then((res) => 34 // get display name, handle, and did for each user 35 res.repos.map((repo) => ({ ··· 37 `http://pi:8000/xrpc/com.atproto.repo.getRecord?repo=${repo.did}&collection=app.bsky.actor.profile&rkey=self` 38 ) 39 .then((res) => res.json()) 40 - .then((profile) => profile?.value?.displayName ?? repo), 41 // dont validate handles because I'm Lazy + trust myself 42 handle: fetch( 43 repo.did.startsWith("did:plc")
··· 26 // type cast because no point validating for smthn like this 27 // real type has more info; not needed here 28 .then((res) => res.json() as Promise<{ repos: { did: string }[] }>) 29 .then((res) => 30 // get display name, handle, and did for each user 31 res.repos.map((repo) => ({ ··· 33 `http://pi:8000/xrpc/com.atproto.repo.getRecord?repo=${repo.did}&collection=app.bsky.actor.profile&rkey=self` 34 ) 35 .then((res) => res.json()) 36 + .then((profile) => profile?.value?.displayName ?? repo.did), 37 // dont validate handles because I'm Lazy + trust myself 38 handle: fetch( 39 repo.did.startsWith("did:plc")