limit per user
Este commit está contenido en:
@@ -1,5 +1,6 @@
|
||||
module.exports = {
|
||||
port: 8080,
|
||||
username: 'user',
|
||||
password: 'dav'
|
||||
password: 'dav',
|
||||
limit: 10000 // limit per user
|
||||
}
|
||||
2
index.js
2
index.js
@@ -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')
|
||||
})
|
||||
|
||||
|
||||
Referencia en una nueva incidencia
Block a user