Configuration

The module configuration is accessible from Home > Setup > Modules > DoliDrive. It is organized in six tabs.

Configuration tab

This tab groups the NextCloud server connection settings and the general options.

NextCloud connection

Parameter Description
Server URL of your NextCloud server (for example https://masociete.on1.dolizen.fr)
Username NextCloud username. The word "dolibarr" is forbidden.
API connection key NextCloud application token, generated automatically (see below)
BASE subfolder Root folder on NextCloud that serves as the base for the whole tree
Name of the customers folder Name of the subfolder that contains all the customer folders, located in the BASE folder

Main DoliDrive configuration page with the NextCloud connection settings

API key generation

  1. Fill in the server URL and the username, then save
  2. Click the Generate an API key button
  3. A NextCloud window opens for you to authenticate
  4. Authorize application access
  5. The key is automatically saved in DoliDrive

Information: If an API key already exists, the generation button is disabled. First delete the existing key, save, then generate a new one.

Tree structure

Parameter Description
Structure choice Organization by Third party (operational) or by User groups
Treat prospects as customers Also creates folders for prospects
Customer tree List of subfolders to create automatically for each customer (one per line)
Limit to active customers Only processes customers with commercial activity in the last 12 months

In the tree text area, you can use substitution variables:

  • __THIRDPARTY_NAME__ -- replaced by the customer name
  • __SUPPLIER_NAME__ -- replaced by the supplier name
  • __BANK_NAME__ -- replaced by the bank account name (if enabled on the account)

Security

Parameter Description
HMAC secret key for webhooks If set, all webhook requests must be signed with this key (header X-Dolidrive-Signature)
Webhook request limit per minute Maximum number of webhook requests accepted per IP and per minute (default: 60, 0 to disable)
Maximum file size Maximum allowed size for file downloads in bytes (default: 52,428,800, i.e. 50 MB)

Performance

Parameter Description
Cache lifetime How long metadata is kept in cache, in seconds (default: 86,400, i.e. 24 h. 0 to disable)

Connection test

After configuring the connection and generating the API key, click the Test connection button to check that DoliDrive communicates correctly with your NextCloud server.

Creating folders for all customers

The Create all folders for all customers button starts the creation of the configured tree for each existing customer in Dolibarr.

Projects tab

This tab configures the management of project-related folders in NextCloud.

Parameter Description
Create a tree for projects Enables the creation of project folders in NextCloud
Project storage subfolder Name of the folder to create in each third party's folder to store the projects
Tree per project List of subfolders to create automatically for each project
Create a folder for each task Automatically creates one subfolder per project task

You can configure the automatic copy of Dolibarr documents related to projects to NextCloud. For each document type, indicate the destination subfolder name. Leave the field empty to disable the copy.

Parameter Description
Customer quote subfolder Storage folder for quotes related to the project
Customer order subfolder Storage folder for orders related to the project
Contract subfolder Storage folder for contracts related to the project
Intervention sheet subfolder Storage folder for intervention sheets related to the project
Customer invoice subfolder Storage folder for invoices related to the project
Supplier quote subfolder Storage folder for supplier quotes related to the project
Supplier order subfolder Storage folder for supplier orders related to the project
Supplier invoice subfolder Storage folder for supplier invoices related to the project

Archives tab

This tab configures the automatic archiving of Dolibarr documents to NextCloud when they are generated.

Automatic archiving configuration page to NextCloud

Quotes / Commercial proposals

Parameter Description
Archive quotes in NextCloud Enables the automatic copy of generated quotes
Folder for quote archiving Destination folder path, relative to the BASE folder. You can use __THIRDPARTY_NAME__

Orders

Parameter Description
Archive orders in NextCloud Enables the automatic copy of generated orders
Folder for order archiving Destination folder path, relative to the BASE folder

Invoices

Parameter Description
Archive invoices in NextCloud Enables the automatic copy of generated invoices
Folder for invoice archiving Destination folder path, relative to the BASE folder

Tip: The __THIRDPARTY_NAME__ variable is automatically replaced by the customer name. For example, the path Clients/__THIRDPARTY_NAME__/Factures creates one subfolder per customer.

Linked files tab

This tab configures the synchronization of files linked to products and services between Dolibarr and NextCloud.

Products and services

Parameter Description
Copy Dolibarr product files to NextCloud Enables the copy of files attached to products to NextCloud
Product storage folder in NextCloud Path relative to the configured BASE
Copy product files from NextCloud into the Dolibarr DMS Enables the reverse synchronization, from NextCloud to Dolibarr
Propagate deletion to NextCloud When you delete a file in Dolibarr, it is also deleted in NextCloud
Propagate deletion to Dolibarr When you delete a file in NextCloud, it is also deleted in the Dolibarr DMS

Warning: If you disable deletion propagation to NextCloud, files deleted in Dolibarr remain in NextCloud. You must then delete them manually.

Logs tab

This tab displays the log of operations performed by DoliDrive. See the Usage page for more details on activity logs.

About tab

This tab displays general module information: version, author, license.