host-meta
#仕様
https://www.rfc-editor.org/rfc/rfc6415.html
https://datatracker.ietf.org/doc/rfc6415/
そのホストが利用可能なプロトコルを提供するためのメタプロトコル。ActivityPubでは、webfingerに対応していることを表明するために必要。
実装
webfingerに対応していることを表現するために、/.well-known/host-metaに対するGETリクエストに、以下の内容を返せばよい:
code:host-meta.xml
<?xml version="1.0"?>
<XRD xmlns="http://docs.oasis-open.org/ns/xri/xrd-1.0">
<!-- example.comの部分は自分のホストに置換すること -->
<Link rel="lrdd" type="application/xrd+xml" template="https://example.com/.well-known/webfinger?resource={uri}" />
</XRD>
Content-Type は application/xrd+xml であることが望ましい(SHOULD)
hr.icon
windymelt.icon 本当はいらないかもしれない