External files storage service for Carbonio CE. This Node.js application provides a REST API for storing, retrieving, and managing files, with Swagger documentation available at the root endpoint.
- Docker or Podman installed
- Make
# Build packages for Ubuntu 22.04
make build TARGET=ubuntu-jammy
# Build packages for Rocky Linux 9
make build TARGET=rocky-9
# Build packages for Ubuntu 24.04
make build TARGET=ubuntu-nobleubuntu-jammy- Ubuntu 22.04 LTSubuntu-noble- Ubuntu 24.04 LTSrocky-8- Rocky Linux 8rocky-9- Rocky Linux 9
You can customize the build by setting environment variables:
# Use a specific container runtime
make build TARGET=ubuntu-jammy CONTAINER_RUNTIME=docker
# Use a different output directory
make build TARGET=rocky-9 OUTPUT_DIR=./my-packagesNode 22 is required to build the application. Alternatively, nvm may be used:
nvm installpnpm is used as the package manager (managed via corepack):
corepack enable
corepack prepare pnpm@latest --activatepnpm install --frozen-lockfile
pnpm run build
pnpm run startThe Storages CE server will be available at http://localhost:5794/.
pnpm run test
pnpm run test:watch
pnpm run test:coverageA container image is available on Docker Hub.
To run the application:
docker run -it --rm -d -p 5794:10000 -e STORAGES_BIND_ADDRESS="0.0.0.0" --name storages-ce zextras/storages-ceThe following environment variables can be provided when starting the Storages CE server:
| Variable | Description | Default |
|---|---|---|
STORAGES_CONF_PATH |
Path to the configuration file | |
STORAGES_BIND_ADDRESS |
Address on which Storages CE will listen for API calls | 127.0.0.1 |
STORAGES_PATH |
Folder inside which all files are stored | |
STORAGES_PORT |
Port the server listens on for HTTP connections | |
STORAGES_BASE_URL |
Suffix path at which the server is served | |
STORAGES_LOGGING_DIRNAME |
Folder for log files produced by Storages CE | |
STORAGES_HTTPS_KEY_PATH |
Path to HTTPS private key | |
STORAGES_HTTPS_CERT_PATH |
Path to HTTPS certificate |
The full URL is constructed as: (http|https)://0.0.0.0:${STORAGES_PORT}/${STORAGES_BASE_URL}
Once the application is started, Swagger documentation is available at: http://localhost:5794/
This package is distributed as part of the Carbonio platform. To install:
apt-get install carbonio-storages-ceyum install carbonio-storages-ceSee CONTRIBUTING.md for information on how to contribute to this project.
This project is licensed under the GNU Affero General Public License v3.0 - see the LICENSE.md file for details.