how to generate-admin-key.js ? (hint node)
-
While I doing my initial checkup
I would like to mention that if you want to run the script./scripts/generate-admin-keys.js
as recommended in the doc
Support mailbox initialization
You can configure a support mailbox in order to give users of your CryptPad instance a way to contact you securely if they have an issue with their account.
Your server is not yet configured to have a support mailbox. If you want a support mailbox to receive messages from your users, you should ask your server administrator to run the script located in "./scripts/generate-admin-keys.js", then store the public key in the "config.js" file and send you the private key.don't forget to call it with node like this:
node ./scripts/generate-admin-keys.js
as mentionned here. -
@JOduMonT thanks, that's really helpful
To add the key to the config.js, I added this code below the admin keys part (it can go anywhere though):
supportMailboxPublicKey: [ "~~~YourPublicKeyHere~~~", ],
The snippet in context looks like:
adminKeys: [ //"[cryptpad-user1@my.awesome.website/YZgXQxKR0Rcb6r6CmxHPdAGLVludrAF2lEnkbx1vVOo=]", ], supportMailboxPublicKey: [ "~~~YourPublicKeyHere~~~", ], /* ===================== * STORAGE * ===================== */
And then just restart the app