alexnuttinck / carbone-ee-plugin-s3

S3 Plugin for Carbone On-premise (carbone-ee)

Home Page:https://carbone.io/on-premise.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

S3 Plugin for Carbone On-premise

Store your templates and generated document into S3 (AWS, OVHCloud, scaleway, and any S3 provider).

Requirements

  • Install Node 18
  • Create 2 S3 Buckets to store templates and renders (generated documents).
  • Create a S3 user accessing the templates and renders buckets.

Setup

Create a plugin directory in the same directory as the carbone-ee binary.

mkdir plugin

Enter into the plugin directory

cd plugin

Clone the repository

git clone https://github.com/carboneio/carbone-ee-plugin-s3.git

Install Npm Packages

npm install

Now move to the parent directory, and add 3 configurations to the config/config.js:

{
    "storageCredentials": [
        {
            "accessKeyId": "ACCESS_KEY_ID",
            "secretAccessKey": "SECRET_KEY",
            "url": "s3.paris.api.url",
            "region": "paris"
        }
    ],
    "rendersBucket": "RENDERS_CONTAINER_NAME",
    "templatesBucket": "TEMPLATES_CONTAINER_NAME"
}

Now start the Carbone On-premise binary, and the following logs will appear. If the connection fails or something goes wrong, an error message will be logged.

- Additional plugin parameters detected: storageCredentials, rendersBucket, templatesBucket in config.json file
- Loading plugin storage.js
- Storage ok | s3.paris.api.url | paris | Status 200 | Buckets: [ RENDERS_CONTAINER_NAME ][ TEMPLATES_CONTAINER_NAME ]

About

S3 Plugin for Carbone On-premise (carbone-ee)

https://carbone.io/on-premise.html

License:Apache License 2.0


Languages

Language:JavaScript 100.0%