An external storage works pretty much like add a network drive to your computer, the uploaded files will be stored in this external storage rather than in your website local hard drive which helps to leverage your server load and deliver a more reliable website.
How does it works
Instead of store the files in the server hard disk, the system will store the files in an external storage server. Chevereto will map each image to the corresponding storage system and it will use the given Storage URL to locate that file and all the Chevereto system functionalities will work exactly the same.
Step-by-step add external storage
To add an external storage in Chevereto follow these steps:
- Go to Dashboard > Settings > External Storage
- Click on "Add storage"
- Submit the form with the required data
If the storage credentials are correct the storage will be added and then you can toggle the activate checkbox to enable or disable that storage. When no storage is set to active the system will use the local storage.
Storage services supported
You will need an Amazon Web Services (AWS) account for this. To setup Amazon S3 follow these steps:
- Create the access credentials from Identity and Access Management console
- Click on "Create New Users" and create your Chevereto S3 user, make sure to enable "Generate an access key for each user"
- Store your Access Key ID and Secret Access Key from the screen that follows
- Click your new created user and then go to the permissions tab
- Click on "Attach Policy" and attach the AmazonS3FullAccess policy
- Create a bucket from the S3 console
- Click on "Create a Bucket" and proceed to create a bucket. Store the bucket name and the region. You don't need to setup logging.
- Add the stroage to Chevereto
- Click on "Add storage" from your Chevereto's Dashboard > Settings > External Storage page
- Fill the form with the required data that you got following this guide
- If you aren't using CNAME make sure that the Storage URL ends with
Google Cloud Storage
You will need a Google Cloud service account and activate cloud storage for this. To setup Google Cloud Storage follow these steps:
- Create a project
- Go to "APIs" under "APIs & auth" and make sure that Google Cloud Storage API is enabled
- Go to "Credentials" under "APIs & auth" and click on "Generate new Client ID"
- On the modal box use the following data:
- Application type: Service account
- Key type: JSON key
- Once the Service account is created click on the "Generate new JSON key" button. You browser will start to download the JSON key which contains the credentials that you need to use in Chevereto (private_key and client_email)
- Go to "Cloud Storage" under "Storage" and click on "Browser"
- Create bucket by clicking the "Create bucket" button. This will be where Chevereto will upload the images
OpenStack configuration will vary from each given provider. This guide setup has been successfully tested with RunAbove.
- Identity URL: https://auth.Runabove.io/v2.0
- Username: Your RunAbove username
- Password: Your RunAbove password
BHS-1 This is the data center where your container was created
- Container: Name of your created container
- Tenant id: Leave it blank
- Tenant name: Your
project id, found on OpenStack Horizon on the left side (CURRENT PROJECT))
- URL: Your URL to access the container (see RunAbove CNAME)
The storage URL is the URL that Chevereto will use to map the files stored in the given storage. This could be the direct URL, a CNAME URL, a CDN URL or any URL that resolves the requested image. This means that you can customize the URL that you want to use for the storage. Is recommended that you use URLs that match your domain so try to take advantage of using a CNAME record.
CDN over external storage
Since you can customize the storage URL you can easily add a CDN for each storage you want to use. You only need to go to your CDN provider and create a pull zone for the origin storage URL. So if you are using Amazon S3 the source or origin URL will be something like this:
So your CDN url will be something like this:
And a CNAME record will allow you to end up with something like this:
Chevereto users can save 25% on MaxCDN just follow this link.