We use Ansible to deploy cryptpad and update it on our server. So we have made the config.js file as a template which allows us to change settings directly there, without using the admin panel.
So my question is: can the remote embedding option be enabled directly into the config.js file?

Hello,

Thanks for creating a new topic for this!

Currently you can't enable remote embedding directly from the config.js file. You have to go in https://your-instance.org/admin/#general and tick the box.

I'd like to know more about your use-case. As I understand you deploy CryptPad with Ansible one time, then you login with your admin account and tick the Remote Embedding box one time and you're done.

When applying updates the admin settings should remain, you won't have to tick the box again. Or maybe your Ansible Playbook override something?

  • meaz replied to this.

    Mathilde
    config.js is a template, so it is deployed with Ansible each time the Ansible role one differs from the prod one. So if this "Remote Embedding" would be modified in the config.js file when enabling it from admin panel, then it would be overwritten next time we update cryptpad with Ansible.

      meaz Thanks for the explanation.

      As the admin interface isn't writing stuff into config.js, your settings are safe. It won't be overwritten next time you update CryptPad with Ansible. 😊