instance: actually, put all this under a nostr key

This commit is contained in:
Alex Gleason 2023-08-26 12:28:25 -05:00
parent baf4c00fee
commit 3c279175bc
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 4 additions and 5 deletions

View File

@ -38,15 +38,14 @@ function instanceController(c: Context) {
user_count: 0, user_count: 0,
}, },
urls: { urls: {
/** Base URL for the streaming API, so it can be hosted on another domain. Clients will add `/api/v1/streaming` to it. */
streaming_api: `${wsProtocol}//${host}`, streaming_api: `${wsProtocol}//${host}`,
/** Full URL to the Nostr relay. */
nostr_relay: `${wsProtocol}//${host}/relay`,
}, },
version: '0.0.0 (compatible; Ditto 0.0.1)', version: '0.0.0 (compatible; Ditto 0.0.1)',
email: Conf.adminEmail, email: Conf.adminEmail,
/** Ditto admin pubkey, so clients can query and validate Nostr events from the server. */ nostr: {
pubkey: Conf.pubkey, pubkey: Conf.pubkey,
relay: `${wsProtocol}//${host}/relay`,
},
rules: [], rules: [],
}); });
} }