Cryptpad - instance customization and `application_config.js` location inconsistency

Received a swift answer from Yann at Cryptpad on their Matrix room:

There is indeed an error in the documentation about the loginSalt.

The correct answer is to always update /customize/application_config.js to customize your instance. Files in /var/www/cryptpad/customize.dist/ and /var/www/cryptpad/www/ should not be modified as they could create conflicts when upgrading your instance in the future.

Many thanks to Yann for his quick reply!

Take away

  • Create a /var/www/cryptpad/customize/ directory if not already present
  • Make a copy of /var/www/cryptpad//customize.dist/application_config.js into the /var/www/cryptpad/customize/ directory
  • Copy the entries found in /var/cryptpad/www/common/application_config_internal.jsthat you want to set into this new /var/www/cryptpad/customize/application_config.js.

Many thanks to Cryptpad and their team for their quick answer ! Keep it up folks!


[FR]

J’ai reçu une réponse de Yann de Cryptpad sur leur room Matrix:

Il y a effectivement une erreur dans la documentation au sujet du loginSalt.

C’est le fichier /customize/application_config.js qu’il faut modifier lorsqu’on customise l’instance. Il ne faut jamais modifier les fichiers /var/www/cryptpad/customize.dist/ et /var/www/cryptpad/www/ car cela créera des conflits lors des mises à jour futures de l’instance.

Un grand merci Yann pour sa réactivité !

À retenir

  • Créer un répertoire /var/www/cryptpad/customize/ s’il n’existe pas déjà
  • Copier /var/www/cryptpad//customize.dist/application_config.jsdans le répertoire/var/www/cryptpad/customize/
  • Copier les entrée présentes dans le fichier /var/cryptpad/www/common/application_config_internal.jset que vous voulez ajouter ou modifier dans le fichier /var/www/cryptpad/customize/application_config.js.

Un grand merci à Cryptpad et son équipe pour leur réponse rapide! Keep it up folks!

1 Like