I've stood up nsecbunkerd the hard way. And I'm encountering:
/home/ubuntu/code/nsecbunkerd/node_modules/nostr-tools/lib/cjs/index.js:1243
let cryptoKey = await crypto.subtle.importKey("raw", normalizedKey, { name: "AES-CBC" }, false, ["encrypt"]);
^
ReferenceError: crypto is not defined
at Object.encrypt (/home/ubuntu/code/nsecbunkerd/node_modules/nostr-tools/lib/cjs/index.js:1243:19)
at _NDKPrivateKeySigner.encrypt (/home/ubuntu/code/nsecbunkerd/node_modules/@nostr-dev-kit/ndk/dist/index.js:4138:45)
at _NDKEvent.encrypt (/home/ubuntu/code/nsecbunkerd/node_modules/@nostr-dev-kit/ndk/dist/index.js:1485:32)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async dmUser (/home/ubuntu/code/nsecbunkerd/dist/daemon/index.js:845:3)
Node.js v18.19.1
Running on a plain vanilla ubuntu 22.04 LTS, Node v18.19.1
The setting admin.npubs seems to be the main issue. When I set it to [], nsecbunkerd starts up and seems to be working. However, no admin.npubs, no admin. The admin ui at apps.nsecbunkerd.com rightfully won't connect.
Follow up on this ticket. The call to dmUser is only triggered on startup when "notifyAdminsOnBoot": true, so setting it to false is a work around for now.
I've stood up nsecbunkerd the hard way. And I'm encountering:
My /config/nsecbunkger.json:
Running on a plain vanilla ubuntu 22.04 LTS, Node v18.19.1
The setting admin.npubs seems to be the main issue. When I set it to [], nsecbunkerd starts up and seems to be working. However, no admin.npubs, no admin. The admin ui at apps.nsecbunkerd.com rightfully won't connect.