Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    how to generate-admin-key.js ? (hint node)

    CryptPad
    2
    2
    131
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • JOduMonT
      JOduMonT last edited by JOduMonT

      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.

      3246 1 Reply Last reply Reply Quote 3
      • 3246
        3246 @JOduMonT last edited by

        @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 🙂

        Visit https://www.bebravernow.com for more

        1 Reply Last reply Reply Quote 2
        • First post
          Last post
        Powered by NodeBB