fix wrong nip46 key used

This commit is contained in:
Pablo Fernandez
2024-01-08 15:29:54 +00:00
parent bfcb0992d4
commit c92b169435
4 changed files with 5 additions and 4 deletions

View File

@@ -36,6 +36,7 @@ RUN npm install --only=production
# Copy and run migrations # Copy and run migrations
COPY --from=build /app/prisma ./prisma COPY --from=build /app/prisma ./prisma
RUN npx prisma migrate deploy RUN npx prisma migrate deploy
RUN npx prisma db push
# Set entrypoint # Set entrypoint
ENTRYPOINT [ "node", "scripts/start.js" ] ENTRYPOINT [ "node", "scripts/start.js" ]

View File

@@ -34,8 +34,8 @@ In the background, the bunker will have configured the requested NIP-05 mapping
"pablo": [ "wss://nos.lol", "<etc>" ] "pablo": [ "wss://nos.lol", "<etc>" ]
}, },
"nip46": { "nip46": {
"_": [ "wss://relay.nsecbunker.com" ], "bunker-pubkey": [ "wss://relay.nsecbunker.com" ],
"pablo": [ "wss://relay.nsecbunker.com" ] "fa984bd7dbb282f07e16e7ae87b26a2a7b9b90b7246a44771f0cf5ae58018f52": [ "wss://relay.nsecbunker.com" ]
} }
} }
``` ```

View File

@@ -1,6 +1,6 @@
{ {
"name": "nsecbunkerd", "name": "nsecbunkerd",
"version": "0.10.0", "version": "0.10.1",
"description": "nsecbunker daemon", "description": "nsecbunker daemon",
"main": "dist/index.js", "main": "dist/index.js",
"bin": { "bin": {

View File

@@ -53,7 +53,7 @@ async function addNip05(currentConfig: IConfig, username: string, domain: string
currentNip05s.names[username] = pubkey; currentNip05s.names[username] = pubkey;
currentNip05s.relays ??= {}; currentNip05s.relays ??= {};
currentNip05s.nip46 ??= {}; currentNip05s.nip46 ??= {};
currentNip05s.nip46[username] = currentConfig.nostr.relays; currentNip05s.nip46[pubkey] = currentConfig.nostr.relays;
// save file // save file
const nip05File = currentConfig.domains![domain].nip05; const nip05File = currentConfig.domains![domain].nip05;