CDPStorage can be used in different offering forms.
This page explains which forms exist today, which are in preparation, and how the Storage module is switched on and off in each case.<STORAGE_HOST>, <DRIVE_HOST> and <CDN_HOST> are the addresses of your own installation, for example storage.example.com, drive.example.com and cdn.example.com.
Overview of the offering forms
| Offering form | Status | Activate / deactivate |
|---|---|---|
| Standalone product on your own domains | Available | Setting module_storage in the CDPDrive settings |
| Module for CDP (ControlDeskPanel) | In preparation | Planned: switch on/off in CDP |
| Module for CDPCMS | Available through the CDPCMS module "CDPDrive" | Module list of CDPCMS and switch "CDPDrive connection" |
Standalone product on your own domains
CDPStorage is installed together with CDPDrive and CDPCDN as one application on your own server.
The licence is a one-time purchase per installation;
there is no subscription.
The licence file names the licensed products (Storage, Drive, CDN or the bundle).
A module that is not licensed answers with HTTP 503.
Requirements
- A server with Ubuntu 24.04 or 26.04, nginx, PHP-FPM 8.3 or newer (with gd, sodium, pdo_mysql, curl, intl, mbstring, exif, zip) and MariaDB 10.11 or newer.
- Three host names of your own domain: one each for Drive, Storage and CDN.
- A TLS certificate for each of the three hosts; the web server configuration expects them in the usual certificate folder per host.
- Storage nodes: the first node is set up on the same server when a private WireGuard interface is present; further nodes can be added later under "Storage nodes".
Domain setup
- Create DNS records (A for IPv4, AAAA for IPv6) for <DRIVE_HOST>, <STORAGE_HOST> and <CDN_HOST> that point to your server.
- Obtain a TLS certificate for each of the three hosts. S3 clients connect on port 443 only.
- Run the installer as root with the three hosts in this order:
cdpdrive-install <DRIVE_HOST> <STORAGE_HOST> <CDN_HOST> [--licence=<file>]. - The installer writes the hosts into the configuration (
.env), creates the database, the master key, the web folders, the nginx configuration for each host, the background job units and the first administrator. It prints the start password of the administrator; TOTP is set up at the first sign-in. - Sign in at
https://<DRIVE_HOST>/login, create a project and an access key. The S3 endpoint is thenhttps://<STORAGE_HOST>.
Switching the Storage module on and off
Under Settings → Modules the administrator finds three switches: module_storage (Storage, S3 API), module_drive (Drive) and module_cdn (CDN).
When the Storage module is switched off, every request to <STORAGE_HOST> is answered with HTTP 503 (ServiceUnavailable).
No data is deleted;
when the module is switched on again, all buckets and objects are available as before.
In addition, S3 access can be switched off per project in the project settings.
Branding
Your own host names are used everywhere (endpoint, web interface, delivery addresses).
Further branding options such as your own logo or colours in the interface are in preparation.
Module for CDP (ControlDeskPanel)
A CDPStorage module for CDP is in preparation.
The planned behaviour: the module is activated or deactivated in CDP, and deactivating it switches the service off without deleting data.
Until it is available, use the standalone installation.
Module for CDPCMS
There is no separate CDPCMS module called "CDPStorage".
CDPCMS reaches CDPStorage through the CDPCMS module CDPDrive, which connects a CDPCMS website to a CDPDrive installation (Storage, Drive and CDN).
What the CDPDrive module does
- Page "CDPDrive → Connection" with the fields: CDPDrive connection (on/off), Drive host, Storage endpoint (S3), CDN host, Project (bucket), Access key id, Secret access key, Region (default
eu-fra; any value is accepted). A Button tests the connection with a HEAD request on the bucket. - Editor: the Button "CDPDrive" opens the media picker of the Drive host; the address of the selected file is inserted.
- Templates: the helpers
cdpdrive_url()andcdpdrive_srcset()build CDN addresses and srcset lists (480, 960, 1440). - Console:
php artisan cdpdrive:push [--site=<domain>] [--prefix=<prefix>] [--dry-run]uploads the media folder of the website to the project over the S3 API and skips unchanged files.
Activate and deactivate
The module is activated or deactivated in the CDPCMS module list.
After activation, enter the connection under CDPDrive → Connection.
Deactivating switches the connection off;
the settings are kept.
With the switch "CDPDrive connection" set to off, the picker Button and the CDN helpers do nothing and templates fall back to the local files.