From 3c279175bc3799146341e10fbd75e023d050b163 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sat, 26 Aug 2023 12:28:25 -0500 Subject: [PATCH] instance: actually, put all this under a nostr key --- src/controllers/api/instance.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/controllers/api/instance.ts b/src/controllers/api/instance.ts index 0b5706a0..6ffb85c3 100644 --- a/src/controllers/api/instance.ts +++ b/src/controllers/api/instance.ts @@ -38,15 +38,14 @@ function instanceController(c: Context) { user_count: 0, }, 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}`, - /** Full URL to the Nostr relay. */ - nostr_relay: `${wsProtocol}//${host}/relay`, }, version: '0.0.0 (compatible; Ditto 0.0.1)', email: Conf.adminEmail, - /** Ditto admin pubkey, so clients can query and validate Nostr events from the server. */ - pubkey: Conf.pubkey, + nostr: { + pubkey: Conf.pubkey, + relay: `${wsProtocol}//${host}/relay`, + }, rules: [], }); }