+var webdavServer = new webdav.WebDAVServer({
+ requireAuthentification: true,
+ httpAuthentication: new webdav.HTTPBasicAuthentication(new auth.WebdavUserManager(), 'Cloudron Surfer')
+});
+
+webdavServer.setFileSystem('/', new webdav.PhysicalFileSystem(ROOT_FOLDER), function (success) {
+ console.log(`Mounting ${ROOT_FOLDER} as webdav resource`, success);
+});
+