https://github.com/agentejo/cloudstorage
Cloud storage addon for Cockpit CMS - https://github.com/agentejo/cockpit
https://github.com/agentejo/cloudstorage
Last synced: 5 months ago
JSON representation
Cloud storage addon for Cockpit CMS - https://github.com/agentejo/cockpit
- Host: GitHub
- URL: https://github.com/agentejo/cloudstorage
- Owner: agentejo
- Created: 2018-05-28T12:31:55.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-06-17T14:30:14.000Z (over 5 years ago)
- Last Synced: 2025-05-07T04:59:22.364Z (5 months ago)
- Language: PHP
- Size: 4.11 MB
- Stars: 15
- Watchers: 2
- Forks: 8
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Use cloud storage providers to store assets or thumbnails.
**Notice:** Only Amazon s3, Azure Blobstorage, Minio and Google Cloud Storage are supported right now
# Usage
Add files to `addons/CloudStorage`.
Then update the config (`config/config.yaml`), e.g:
### Amazon S3
```
cloudstorage:
assets:
type: s3
key: xxxKeyxxx
secret: xxxSecretxxx
region: eu-central-1
bucket: mybucket# optional
endpoint: https://eu-central-1.amazonaws.com
prefix: subfolder-name
url: https://s3.eu-central-1.amazonaws.com
```### Digital Ocean Spaces
```
cloudstorage:
assets:
type: s3
key: xxxKeyxxx
secret: xxxSecretxxx
region: us-sfo-2
bucket: mybucket
endpoint: https://sfo2.digitaloceanspaces.com
url: https://sfo2.digitaloceanspaces.com/{bucket}
# advanced options
options:
ACL: 'public-read'
```### Azure Blobstorage
```
cloudstorage:
assets:
type: azure
key: xxxKeyxxx
account: my-account
container: my-container# optional
url: https://my-custom-url.com
```### Minio
```
cloudstorage:
assets:
type: minio
key: xxxKeyxxx
secret: xxxSecretxxx
bucket: mybucket# optional
endpoint: http://localhost:9000
region: us-east-1
prefix: subfolder-name
image_address: http://localhost:9000/mybucket
```### Google Cloud Storage
```
cloudstorage:
assets:
type: gcp_storage
bucket: mybucket# optional
prefix: assets
url: https://storage.googleapis.com/mybucket
```Authorize Google Cloud Storage with an environment variable like this:
```
ENV GOOGLE_APPLICATION_CREDENTIALS=/keyFile.json
```That's it!