limit per user

Este commit está contenido en:
ale
2020-05-25 21:41:14 +02:00
padre 7f6f850b2a
commit 2d15f439f3
Se han modificado 2 ficheros con 4 adiciones y 3 borrados

Ver fichero

@@ -1,5 +1,6 @@
module.exports = {
port: 8080,
username: 'user',
password: 'dav'
password: 'dav',
limit: 10000 // limit per user
}

Ver fichero

@@ -10,7 +10,7 @@ const config = require('./config'),
requireAuthentification: true,
httpAuthentication: new webdav.HTTPBasicAuthentication(userManager, 'DAV Auth'),
privilegeManager: privilegeManager,
storageManager: new webdav.PerUserStorageManager(10000),
storageManager: new webdav.PerUserStorageManager(config.limit),
rootFileSystem: new webdav.PhysicalFileSystem(__dirname + '/public')
})