mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 18:10:06 -05:00
Admin Panel -> Attachments has a WebDAV (Nextcloud Files) pane beside S3, Azure and Google Cloud Storage: a folder address, a user and an app password, with the same read and write switches, connection test, default storage choice and Move Attachment target as the others. Files are stored with PUT, read with GET and removed with DELETE; the folders are made with MKCOL as needed, and the connection test is a PROPFIND of the folder. The password is a secret field like the other backends' keys: never published, and kept when the form is saved without it. The address is the site admin's own setting, so a Nextcloud on WeKan's own network can be used; redirects are refused so it cannot be pointed somewhere else. With the CalDAV sync of the previous commit this completes #687. The Nextcloud ExApp is built by .github/workflows/nextcloud.yml; publishing it to the Nextcloud app store is the maintainer's own step. Thanks to scriptPilot and xet7 ! Fixes #687.
20 lines
1.1 KiB
JavaScript
20 lines
1.1 KiB
JavaScript
// Storage backend name constants — shared between client and server.
|
|
// Extracted from fileStoreStrategy.js to avoid pulling fs/path into the client.
|
|
|
|
export const STORAGE_NAME_FILESYSTEM = 'fs';
|
|
export const STORAGE_NAME_GRIDFS = 'gridfs';
|
|
export const STORAGE_NAME_S3 = 's3';
|
|
export const STORAGE_NAME_AZURE = 'azure';
|
|
export const STORAGE_NAME_GCS = 'gcs';
|
|
// #687: WebDAV - Nextcloud Files, ownCloud or any WebDAV server
|
|
// (server/lib/webdavAdapter.js), served like the cloud providers below.
|
|
export const STORAGE_NAME_WEBDAV = 'webdav';
|
|
// Legacy CollectionFS GridFS (pre-Meteor-Files): metadata lives in
|
|
// cfs.<coll>.filerecord and binaries in the cfs_gridfs.<coll> GridFS bucket.
|
|
// Supported as a migration source and (for export to very old WeKan) destination.
|
|
export const STORAGE_NAME_COLLECTIONFS = 'collectionfs';
|
|
|
|
// Storage backends served through @tweedegolf/storage-abstraction (multi-cloud).
|
|
// Filesystem and GridFS keep their dedicated native strategies.
|
|
export const CLOUD_STORAGE_NAMES = [STORAGE_NAME_S3, STORAGE_NAME_AZURE, STORAGE_NAME_GCS, STORAGE_NAME_WEBDAV];
|