|
|
@ -11,6 +11,12 @@ UPDATE_DEFAULT_STORAGE(<number>)
|
|
|
|
SET_QUOTA(<string:signkey>, limit)
|
|
|
|
SET_QUOTA(<string:signkey>, limit)
|
|
|
|
RM_QUOTA(<string:signkey>)
|
|
|
|
RM_QUOTA(<string:signkey>)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// INACTIVITY
|
|
|
|
|
|
|
|
SET_INACTIVE_TIME
|
|
|
|
|
|
|
|
SET_ACCOUNT_RETENTION_TIME
|
|
|
|
|
|
|
|
SET_ARCHIVE_RETENTION_TIME
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// UPLOADS
|
|
|
|
SET_MAX_UPLOAD_SIZE
|
|
|
|
SET_MAX_UPLOAD_SIZE
|
|
|
|
SET_PREMIUM_UPLOAD_SIZE
|
|
|
|
SET_PREMIUM_UPLOAD_SIZE
|
|
|
|
|
|
|
|
|
|
|
@ -26,11 +32,6 @@ REVOKE_INVITE
|
|
|
|
REDEEM_INVITE
|
|
|
|
REDEEM_INVITE
|
|
|
|
|
|
|
|
|
|
|
|
// 2.0
|
|
|
|
// 2.0
|
|
|
|
UPDATE_INACTIVE_TIME
|
|
|
|
|
|
|
|
UPDATE_ACCOUNT_RETENTION_TIME
|
|
|
|
|
|
|
|
UPDATE_ARCHIVE_RETENTION_TIME
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 3.0
|
|
|
|
|
|
|
|
Env.adminEmail
|
|
|
|
Env.adminEmail
|
|
|
|
Env.supportMailbox
|
|
|
|
Env.supportMailbox
|
|
|
|
Env.DEV_MODE || Env.FRESH_MODE,
|
|
|
|
Env.DEV_MODE || Env.FRESH_MODE,
|
|
|
@ -111,8 +112,18 @@ commands.SET_PREMIUM_UPLOAD_SIZE = makeIntegerSetter('premiumUploadSize');
|
|
|
|
// CryptPad_AsyncStore.rpc.send('ADMIN', [ 'ADMIN_DECREE', ['UPDATE_DEFAULT_STORAGE', [100 * 1024 * 1024]]], console.log)
|
|
|
|
// CryptPad_AsyncStore.rpc.send('ADMIN', [ 'ADMIN_DECREE', ['UPDATE_DEFAULT_STORAGE', [100 * 1024 * 1024]]], console.log)
|
|
|
|
commands.UPDATE_DEFAULT_STORAGE = makeIntegerSetter('defaultStorageLimit');
|
|
|
|
commands.UPDATE_DEFAULT_STORAGE = makeIntegerSetter('defaultStorageLimit');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// CryptPad_AsyncStore.rpc.send('ADMIN', [ 'ADMIN_DECREE', ['SET_LAST_EVICTION', [0]]], console.log)
|
|
|
|
commands.SET_LAST_EVICTION = makeIntegerSetter('lastEviction');
|
|
|
|
commands.SET_LAST_EVICTION = makeIntegerSetter('lastEviction');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// CryptPad_AsyncStore.rpc.send('ADMIN', [ 'ADMIN_DECREE', ['SET_INACTIVE_TIME', [90]]], console.log)
|
|
|
|
|
|
|
|
commands.SET_INACTIVE_TIME = makeIntegerSetter('inactiveTime');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// CryptPad_AsyncStore.rpc.send('ADMIN', [ 'ADMIN_DECREE', ['SET_ARCHIVE_RETENTION_TIME', [30]]], console.log)
|
|
|
|
|
|
|
|
commands.SET_ARCHIVE_RETENTION_TIME = makeIntegerSetter('archiveRetentionTime');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// CryptPad_AsyncStore.rpc.send('ADMIN', [ 'ADMIN_DECREE', ['SET_ACCOUNT_RETENTION_TIME', [365]]], console.log)
|
|
|
|
|
|
|
|
commands.SET_ACCOUNT_RETENTION_TIME = makeIntegerSetter('accountRetentionTime');
|
|
|
|
|
|
|
|
|
|
|
|
var Quota = require("./commands/quota");
|
|
|
|
var Quota = require("./commands/quota");
|
|
|
|
var Keys = require("./keys");
|
|
|
|
var Keys = require("./keys");
|
|
|
|
var Util = require("./common-util");
|
|
|
|
var Util = require("./common-util");
|
|
|
|