plc を更新
38
plc.md
38
plc.md
@@ -10,6 +10,26 @@ didには、`did:web`, `did:plc`のような形式があり、webはそのまま
|
||||
|
||||
ここでは、主に、selfhostする場合のhackをまとめたいと思います。
|
||||
|
||||
## AVAILABLE_USER_DOMAINS
|
||||
|
||||
昔、pdsには`AVAILABLE_USER_DOMAINS`がありました。これは、そこに所属するユーザーのデフォルトdomainを規定するものです。
|
||||
|
||||
> envs/pds
|
||||
|
||||
```sh
|
||||
PDS_VERSION="v1.3.3"
|
||||
AVAILABLE_USER_DOMAINS=".ai"
|
||||
```
|
||||
|
||||
```sh
|
||||
$ pds=https://bsky.syui.ai
|
||||
$ date=2023-04-21T13:07:52.503Z
|
||||
$ curl -sL "plc.directory/export?after=$date"|jq "select(.operation.services.atproto_pds.endpoint == \"$pds\").operation.alsoKnownAs.[]"
|
||||
---
|
||||
"at://ai.ai"
|
||||
```
|
||||
|
||||
|
||||
## handle change
|
||||
|
||||
pdsの`PDS_PLC_ROTATION_KEY_K256_PRIVATE_KEY_HEX`を使用し、rotation-keyを作成後に、indigoにある`goat plc`を使用します。
|
||||
@@ -86,21 +106,3 @@ $ goat plc history did:plc:vzsvtbtbnwn22xjqhcu3vd6y
|
||||
2. `plc_operation.json`と`$PDS_ROTATION_KEY`を使用し、`plc_signed.json`を作成
|
||||
3. `plc_signed.json`を使用し、plcを更新
|
||||
|
||||
## AVAILABLE_USER_DOMAINS
|
||||
|
||||
昔、pdsには`AVAILABLE_USER_DOMAINS`がありました。これは、そこに所属するユーザーのデフォルトdomainを規定するものです。
|
||||
|
||||
> envs/pds
|
||||
|
||||
```sh
|
||||
PDS_VERSION="v1.3.3"
|
||||
AVAILABLE_USER_DOMAINS=".ai"
|
||||
```
|
||||
|
||||
```sh
|
||||
$ pds=https://bsky.syui.ai
|
||||
$ date=2023-04-21T13:07:52.503Z
|
||||
$ curl -sL "plc.directory/export?after=$date"|jq "select(.operation.services.atproto_pds.endpoint == \"$pds\").operation.alsoKnownAs.[]"
|
||||
---
|
||||
"at://ai.ai"
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user