CDPDrive is offered in three forms: as a standalone product on your own domains, as a module for CDP (ControlDeskPanel) and as a module for CDPCMS. This page explains what exists today, how each form is switched on and off and what is still in preparation.
In this article <DRIVE_HOST>, <STORAGE_HOST> and <CDN_HOST> stand for the addresses of your own installation, for example drive.example.com, storage.example.com and cdn.example.com.
Offering forms at a glance
| Form | Status | Switching on/off |
|---|---|---|
| Standalone on your own domains | available | Settings → Modules: module_drive, module_storage, module_cdn |
| Module for CDP (ControlDeskPanel) | in preparation | planned: activate/deactivate in CDP |
| Module for CDPCMS | available (module "CDPDrive") | CDPCMS module list: activate/deactivate |
Standalone on your own domains
Requirements
The installer expects Ubuntu 24.04 or 26.04 with nginx, php-fpm 8.3 or newer (with the extensions gd, sodium, pdo_mysql, curl, intl, mbstring, exif and zip), MariaDB 10.11 or newer, root access and a TLS certificate for each of the three hosts.
Domain setup
- Choose three host names of your own domain, one each for Drive, Storage and CDN.
- Create DNS records (A and, if your server has IPv6, AAAA) for all three hosts pointing to your server.
- Obtain a TLS certificate for each host. The supplied nginx templates look for the certificates under
/etc/letsencrypt/live/<host>/.
Installation
cdpdrive-install <DRIVE_HOST> <STORAGE_HOST> <CDN_HOST> --licence=/path/to/licence.json
The installer creates folders, the master key and an installation id, the database, the backend, the configuration file with the three hosts, the first administrator (role owner, password printed once), nginx sites, php-fpm pools, the systemd units for jobs and updates and the first storage node, then checks the licence.
Existing configuration, keys and database are kept when it runs again.
Change the printed password after the first sign-in;
the one-time code app is set up at that sign-in.
Switching modules on and off
Under Settings → Modules an administrator switches the three modules individually.
A switched-off module answers on its host with a status page and HTTP 503;
all data is kept and is available again as soon as the module is switched on.
A module that is not covered by the licence also answers with 503.
In addition, the project settings have per-project switches for Drive, S3 and CDN.
Licence
The licence is a signed file (/etc/cdpdrive/licence.json) that is checked offline.
It is a one-time purchase per installation and names the licensed products;
there is no subscription.
Branding
Own logos, colours or product names in the interface cannot be configured yet –
branding is in preparation.
The interface is available in English and German;
each user selects the language in the profile.
Module for CDP (ControlDeskPanel)
A CDPDrive module for CDP is in preparation.
The planned behaviour: activate the module in CDP to use CDPDrive for a customer, deactivate it to switch it off again while the data is kept.
Until it is released, use the standalone installation or the CDPCMS module.
Module for CDPCMS
What the module does
The CDPCMS module "CDPDrive" connects a CDPCMS website to a CDPDrive installation.
Its page CDPDrive → Connection stores: connection on/off, Drive host, Storage endpoint, CDN host, project (bucket), access key id, secret access key (stored encrypted) and region (default eu-fra).
The Button "Test connection" checks access to the bucket.
- Editor: the Button "CDPDrive" opens the CDPDrive media picker of the Drive host; the chosen file is inserted with its CDN address, or its download address.
- Templates:
cdpdrive_url('folder/file.png')returns the CDN address of a file,cdpdrive_srcset('folder/file.png')a srcset with 480, 960 and 1440 pixels. - Command:
php artisan cdpdrive:push [--site=] [--prefix=] [--dry-run]uploads the media library/core/assets/gfxof the website to the project through the S3 API.
Activate and deactivate
Activate the module in the CDPCMS module list, then enter the connection.
Deactivating switches the connection off and keeps the settings.
With the connection set to off, the picker Button and the template helpers do nothing and templates fall back to the local files.
Storage and CDN through the module
There is no separate CDPCMS module for CDPStorage or CDPCDN.
The CDPDrive module reaches both: uploads go to CDPStorage through the S3 endpoint and access key, addresses in templates point to CDPCDN.