Ozone: add metadata endpoint (#3735)

* ozone: add well-known metadata endpoint

* ozone changeset
This commit is contained in:
devin ivy 2025-04-15 21:17:33 -04:00 committed by GitHub
parent 3fcd221111
commit 0759f0feed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 14 additions and 1 deletions

View File

@ -0,0 +1,5 @@
---
"@atproto/ozone": patch
---
Added well-known metadata endpoint to ozone.

View File

@ -3,7 +3,7 @@ on:
push:
branches:
- main
- divy/ozone-passthru
- divy/ozone-metadata
env:
REGISTRY: ${{ secrets.AWS_ECR_REGISTRY_USEAST2_PACKAGES_REGISTRY }}
USERNAME: ${{ secrets.AWS_ECR_REGISTRY_USEAST2_PACKAGES_USERNAME }}

View File

@ -31,5 +31,13 @@ export const createRouter = (ctx: AppContext): Router => {
})
})
router.get('/.well-known/ozone-metadata.json', (_req, res) => {
return res.json({
did: ctx.cfg.service.did,
url: ctx.cfg.service.publicUrl,
publicKey: ctx.signingKey.did(),
})
})
return router
}