mirror of
https://github.com/Such-Software/smirk-backend-core.git
synced 2026-10-17 07:21:32 +02:00
capabilities: advertise nip05_domain
The wallet cannot derive the handle domain; guessing by stripping 'api.' only works for a smirk.cash-shaped deployment. The host of PUBLIC_API_URL is the answer, so state it.
This commit is contained in:
@@ -2858,6 +2858,13 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"nip05_domain": {
|
||||
"type": [
|
||||
"string",
|
||||
"null"
|
||||
],
|
||||
"description": "The domain this instance's handles live at, i.e. the `<domain>` in\n`name@<domain>`, and the host serving `/.well-known/nostr.json`.\n\nAdvertised because the wallet cannot derive it. It used to guess by\nstripping a leading `api.` from the backend URL, which is right only for\na smirk.cash-shaped two-host deployment. An operator serving the API at\n`api.example.org` without also serving `example.org`, or at any other\nname, had their users publish handles that resolve nowhere. Absent when\nthe operator has not set a public URL, in which case the client falls\nback to the old heuristic."
|
||||
},
|
||||
"premium": {
|
||||
"oneOf": [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user