Site storage
/dashboard/settings/site-storage
Site storage is where Chevereto keeps website and user assets, such as the logo, homepage covers, avatars and profile backgrounds. It works like Upload storage, but for the files that make up your website instead of the files uploaded by users.
Upload storage
Check the Upload storage documentation to control where user-uploaded files are stored.
How it works
Site storage sends website assets to a single storage server. That server exposes the files over HTTP, so visitors load these assets from the storage URL instead of from your website.
Unlike Upload storage, which can use several storage servers at once, Site storage uses one storage server. For this reason the form doesn't have the Name, Storage capacity and Enabled types options found in Upload storage.
When you save, Chevereto uploads and then deletes a test file to check the connection. If the test fails, the error is shown under API and nothing is saved.
Existing files are not moved
Changing the Site storage only affects assets uploaded from then on. Files already stored stay where they are, so copy them to the new storage yourself to keep them working.
Stored assets
| Asset | Path in storage |
|---|---|
| Logo, homepage logo, favicon, watermark, homepage covers, consent screen cover | content/images/system/ |
| User avatars and profile backgrounds | content/images/users/<user_id>/ |
The default images that ship with Chevereto are always loaded from your website.
Default storage
When CHEVERETO_ENABLE_LOCAL_STORAGE is enabled, Site storage uses the Local API by default:
- New installations store assets at
images/_assets/under the public path, mapped tohttps://your-website/images/_assets/. - Installations upgraded from older versions store assets relative to the public path, mapped to the website URL.
Storage URL
Site storage uses the URL as a base URL to map stored assets to their public location, exactly as described in Upload storage. You can also put a CDN in front of it.
Providers
Site storage supports Alibaba Cloud OSS, Amazon S3, Backblaze B2 (legacy API), FTP, Google Cloud, Local, Microsoft Azure, OpenStack, S3 compatible and SFTP. Check Storage providers for setup instructions for each one.
Chevereto Free and Lite can use Local, Amazon S3 and S3 compatible. All providers are available in Chevereto Pro. Providers not available in your edition are listed with a * and can't be selected.
- If
CHEVERETO_ENABLE_EXTERNAL_STORAGE_PROVIDERSis set to0, only Local can be selected. - If
CHEVERETO_ENABLE_LOCAL_STORAGEis set to0, Local isn't offered.
Storage values (common)
API
The storage provider.
| Type | Example |
|---|---|
| Select | Amazon S3 |
Bucket
The bucket where the files will be stored. Used by Alibaba Cloud OSS, Amazon S3, Backblaze B2, Google Cloud, Microsoft Azure and S3 compatible.
| Type | Description |
|---|---|
| String | The bucket name |
Key
The API key to access storage.
| Type | Description |
|---|---|
| String | Public key |
Secret
The API secret to access storage.
| Type | Description |
|---|---|
| String | Secret key |
URL
The URL where the files in this storage are publicly available.
| Type | Example |
|---|---|
| String | https://storage1.demo.chevereto.com/bucket/ |
WARNING
For the example above, a file at https://storage1.demo.chevereto.com/bucket/example.jpg should be resolving.
Alibaba Cloud OSS
Storage type: oss
Uses Bucket, Key, Secret and URL, plus the endpoint.
| Value | Description |
|---|---|
| Endpoint | Alibaba Cloud OSS endpoint |
Amazon S3
Storage type: s3
Uses Bucket, Key, Secret and URL, plus the region. If your S3 provider isn't AWS, use S3 compatible.
| Value | Description |
|---|---|
| Region | Amazon S3 region, selected from a list |
| Use path style endpoint | Use endpoint/bucket instead of bucket.endpoint |
Backblaze B2 (legacy)
Storage type: b2
This is for the deprecated B2 API. For new buckets, use S3 compatible as described in Storage providers.
Uses Bucket and URL. Key and Secret take the B2 credentials:
| Value | Description |
|---|---|
| Key | keyID |
| Secret | Master Application Key |
FTP
Storage type: ftp
| Value | Description | Example |
|---|---|---|
| Server | IP address or hostname | 127.0.0.1 ftp.chevereto.com |
| Path | Absolute path in the context of the FTP login (/ for root) | /path/in/server/ |
| User | FTP user | username |
| Password | FTP password | password |
| URL | See URL |
Google Cloud
Storage type: gcloud
Uses Bucket and URL, plus a service account key in JSON format.
| Value | Description |
|---|---|
| Private key | Google Cloud JSON key |
Local
Storage type: local
Stores the files on the server running Chevereto.
| Value | Description |
|---|---|
| Path | Local path where files will be stored |
| URL | See URL |
Microsoft Azure
Storage type: azure
Uses Bucket (the container) and URL, plus:
| Value | Description |
|---|---|
| Account | Microsoft Azure AccountName |
| Key | Microsoft Azure AccountKey |
| Endpoint | Microsoft Azure endpoint (optional) |
OpenStack
Storage type: openstack
| Value | Description |
|---|---|
| Service name | For example, swift |
| Identity URL | Identity API endpoint |
| Username | The username |
| Password | The password |
| Region | Storage region |
| Container | Storage container |
| Tenant id | Tenant id (account id), optional |
| Tenant name | Tenant name (account name), optional |
| URL | See URL |
S3 compatible
Storage type: s3compatible
Uses Bucket, Key, Secret and URL, plus:
| Value | Description |
|---|---|
| Region | Storage region |
| Endpoint | Storage endpoint, starting with http:// or https:// |
| Use path style endpoint | Use endpoint/bucket instead of bucket.endpoint |
SFTP
Storage type: sftp
Same as FTP, but using the SSH File Transfer Protocol.
