olivmonnier / osjs-webdav-adapter

OS.js WebDAV VFS Adapter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OS.js Logo

OS.js is an open-source web desktop platform with a window manager, application APIs, GUI toolkit, filesystem abstractions and much more.

Support Support Donate Donate Community

OS.js WebDAV VFS Adapter

This is the WebDAV VFS (Server) Adapter for OS.js.

Installation

npm install @osjs/webdav-adapter

Usage

const webdavAdapter = require('@osjs/webdav-adapter');

osjs.register(VFSServiceProvider, {
  args: {
    adapters: {
      webdav: webdavAdapter
    }
  }
});

Then create a mountpoint. Example using ownCloud:

// src/server/config.js
{
  vfs: {
    mountpoints: [{
      name: 'owncloud',
      label: 'ownCloud',
      adapter: 'owncloud',
      attributes: {
        connection: {
          uri: 'http://localhost:8002',
          username: 'osjs',
          password: 'osjs',
          access_token: null,
          prefix: '/remote.php/webdav'
        }
      }
     }]
   }
}

// src/client/config.js
{
  vfs: {
    mountpoints: [{
      name: 'owncloud',
      label: 'ownCloud'
     }]
   }
}

At some point users can create their own server mounts via the client.

Contribution

Documentation

See the Official Manuals for articles, tutorials and guides.

Links

About

OS.js WebDAV VFS Adapter

License:Other


Languages

Language:JavaScript 100.0%