mirror of
https://github.com/aljazceru/nsecbunkerd.git
synced 2025-12-17 06:04:22 +01:00
fix wrong nip46 key used
This commit is contained in:
@@ -36,6 +36,7 @@ RUN npm install --only=production
|
||||
# Copy and run migrations
|
||||
COPY --from=build /app/prisma ./prisma
|
||||
RUN npx prisma migrate deploy
|
||||
RUN npx prisma db push
|
||||
|
||||
# Set entrypoint
|
||||
ENTRYPOINT [ "node", "scripts/start.js" ]
|
||||
|
||||
@@ -34,8 +34,8 @@ In the background, the bunker will have configured the requested NIP-05 mapping
|
||||
"pablo": [ "wss://nos.lol", "<etc>" ]
|
||||
},
|
||||
"nip46": {
|
||||
"_": [ "wss://relay.nsecbunker.com" ],
|
||||
"pablo": [ "wss://relay.nsecbunker.com" ]
|
||||
"bunker-pubkey": [ "wss://relay.nsecbunker.com" ],
|
||||
"fa984bd7dbb282f07e16e7ae87b26a2a7b9b90b7246a44771f0cf5ae58018f52": [ "wss://relay.nsecbunker.com" ]
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "nsecbunkerd",
|
||||
"version": "0.10.0",
|
||||
"version": "0.10.1",
|
||||
"description": "nsecbunker daemon",
|
||||
"main": "dist/index.js",
|
||||
"bin": {
|
||||
|
||||
@@ -53,7 +53,7 @@ async function addNip05(currentConfig: IConfig, username: string, domain: string
|
||||
currentNip05s.names[username] = pubkey;
|
||||
currentNip05s.relays ??= {};
|
||||
currentNip05s.nip46 ??= {};
|
||||
currentNip05s.nip46[username] = currentConfig.nostr.relays;
|
||||
currentNip05s.nip46[pubkey] = currentConfig.nostr.relays;
|
||||
|
||||
// save file
|
||||
const nip05File = currentConfig.domains![domain].nip05;
|
||||
|
||||
Reference in New Issue
Block a user