[WIP] Simple ActivityPub Server
まともに書き直すのは完成してから
参考サイト:
Webfinger
Webfingerは最初にhttps://${Domain}/.well-known/host-meta
に問い合わせる
問い合わせた後、host-meta
のtemplate=${URL}
にアクセスする(${uri}
にacct:${User}@${Domain}
)
Person
ユーザーに関する詳細な情報(通知やフォローなど)を書く
{
"@context": [ // 不明
"https://www.w3.org/ns/activitystreams",
"https://w3id.org/security/v1"
],
"url": "https://${Domain}/${User}", // ユーザーのプロフィールリンク?
"type": "Person", // activitystreamsのPerson 明記
"followers": "https://${Domain}/${User}/followers", // フォロワー 一覧
"following": "https://${Domain}/${User}/following", // フォロー 一覧
"id": "https://${Domain}/${User}", // ユーザーのID?
"preferredUsername": "${User}", // ユーザーID
"name": "${User}", // 表示名
"icon": { // Icon
"mediaType": "image/png", // Iconの mime Type
"type": "Image",
"url": "https://${Domain}/${User}/icon" // IconのURL
},
"summary": "@${User} using on ${Domain}", // 概要
"inbox": "https://${Domain}/${User}/inbox", // このユーザーへの宛先
"outbox": "https://${Domain}/${User}/outbox" // このユーザーの発信元
}
openssl genrsa -out privatekey.pem 2048
秘密鍵
openssl rsa -in privatekey.pem -outform pem -pubout -out publickey.pem
公開鍵
めも
First "2023-08-07T16:21:41Z" ~ "2023-08-06T15:39:38Z"
Last "2022-11-26T02:10:49Z" ~ "2022-11-20T09:26:49Z"
新=>古 20件