Browse Source

TD-198: added more detailes about drive root

pull/2/head
Spocke 6 years ago
parent
commit
ef5c875b3f
  1. 3
      index.js

3
index.js

@ -56,7 +56,8 @@ const setupRoutes = (app) => {
exp: Math.floor(Date.now() / 1000) + (60 * 10) // 10 minutes expiration exp: Math.floor(Date.now() / 1000) + (60 * 10) // 10 minutes expiration
}; };
// Scopes the path to a specific user directory
// When this is set the user will only be able to manage and see files in the specified root
// directory. This makes it possible to have a dedicated home directory for each user.
if (config.scopeUser) { if (config.scopeUser) {
payload['https://claims.tiny.cloud/drive/root'] = `/${user.username}`; payload['https://claims.tiny.cloud/drive/root'] = `/${user.username}`;
} }

Loading…
Cancel
Save