|
@ -10,7 +10,7 @@ const config = require('./config'), |
|
|
requireAuthentification: true, |
|
|
requireAuthentification: true, |
|
|
httpAuthentication: new webdav.HTTPBasicAuthentication(userManager, 'DAV Auth'), |
|
|
httpAuthentication: new webdav.HTTPBasicAuthentication(userManager, 'DAV Auth'), |
|
|
privilegeManager: privilegeManager, |
|
|
privilegeManager: privilegeManager, |
|
|
storageManager: new webdav.PerUserStorageManager(10000), |
|
|
|
|
|
|
|
|
storageManager: new webdav.PerUserStorageManager(config.limit), |
|
|
rootFileSystem: new webdav.PhysicalFileSystem(__dirname + '/public') |
|
|
rootFileSystem: new webdav.PhysicalFileSystem(__dirname + '/public') |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
@ -19,6 +19,6 @@ privilegeManager.setRights(user, '/', ['all']) |
|
|
app.disable('x-powered-by') |
|
|
app.disable('x-powered-by') |
|
|
.use('/', webdav.extensions.express('/dav', server)) |
|
|
.use('/', webdav.extensions.express('/dav', server)) |
|
|
.use(express.static(__dirname + '/public'), serveIndex('public/', { 'icons': true, view: 'details' })) |
|
|
.use(express.static(__dirname + '/public'), serveIndex('public/', { 'icons': true, view: 'details' })) |
|
|
.listen(config.port, () => { |
|
|
|
|
|
|
|
|
.listen(config.port, () => { |
|
|
console.log('Listening om: ::' + config.port) |
|
|
console.log('Listening om: ::' + config.port) |
|
|
}) |
|
|
}) |