Publisher docs
Self-hosting
Your entity and your website can vouch for each other, and your entity can live on your website itself. Either way, readers check what you say against your keys, not against Moonglade's word.
Link your website
A website link says that your entity and your website, an https origin such as https://joes.example, are the same publisher. It holds while both sides say so:
- your entity's manifest names the website in
about.website; - your website serves
/.well-known/moonglade.jsonnaming your entity's DID (status 200, no redirect, at most 4096 bytes), or, for an origin without a port, its host holds the TXT record_moonglade.<host>withentity=<DID>.
Moonglade checks the website at once, then about daily. A link lapses when the website names another entity, or fails three checks in a row, and its owner is told by email. Only a public entity links a website, and a website links one entity at a time.
Link it from any of these:
- the dashboard's Website tab, which shows the link's status, the exact file and record to serve, and checks it again or removes it;
moonglade website link -origin https://joes.example(with-writeto put the file into your site's build output), thenmoonglade website check,moonglade website statusormoonglade website unlink;- your agent's
link_website; PUT /v0/entities/{ref}/website,GET /v0/entities/{ref}/website,POST /v0/entities/{ref}/website/checkandDELETE /v0/entities/{ref}/website.
Linking and removing a link need an admin's role on the entity, checking it again an editor's. For an entity whose keys Moonglade holds, linking also publishes its manifest naming the website; otherwise publish that manifest with your own keys, as moonglade site build and moonglade site publish do for a site folder whose moonglade.toml names the website.
Serve your entity yourself
Your entity can also live on your own website as a static profile: signed, content-addressed files under /.well-known/moonglade/repo/ that anyone can verify against your DID, from any plain file host. Once it learns of your website, Moonglade's directory verifies every file and keeps a mirror up to date, and refuses a file that does not match what you signed.
moonglade init -self https://joes.example/.well-known/moonglade/repo/makes an entity whose home is your website;moonglade site build -static, ormoonglade publish -staticfor an entity directory, writes the profile into your site's output;moonglade repo verify -url https://joes.examplechecks your website the way any reader does, naming the file that does not match;moonglade repo pokeasks the directory to read your website again now, rather than at its next regular check.
Your files' images and other blobs stay on your website: agents fetch them from there.