diff --git a/.gitignore b/.gitignore index 76bc0ea38..139fab33c 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,4 @@ data npm-debug.log pins/ blob/ +privileged.conf diff --git a/config.example.js b/config.example.js index 626d81908..76bba6eae 100644 --- a/config.example.js +++ b/config.example.js @@ -180,6 +180,31 @@ module.exports = { */ suppressRPCErrors: false, + + /* WARNING: EXPERIMENTAL + * + * CryptPad features experimental support for encrypted file upload. + * Our encryption format is still liable to change. As such, we do not + * guarantee that files uploaded now will be supported in the future + */ + + /* Setting this value to anything other than true will cause file upload + * attempts to be rejected outright. + */ + enableUploads: true, + + /* If you have enabled file upload, you have the option of restricting it + * to a list of users identified by their public keys. If this value is set + * to true, your server will query a file (cryptpad/privileged.conf) when + * users connect via RPC. Only users whose public keys can be found within + * the file will be allowed to upload. + * + * privileged.conf uses '#' for line comments, and splits keys by newline. + * This is a temporary measure until a better quota system is in place. + * registered users' public keys can be found on the settings page. + */ + restrictUploads: true, + /* it is recommended that you serve cryptpad over https * the filepaths below are used to configure your certificates */ diff --git a/customize.dist/about.html b/customize.dist/about.html index 2b13aca95..b0b719033 100644 --- a/customize.dist/about.html +++ b/customize.dist/about.html @@ -114,7 +114,7 @@ -
+