If you plan on hosting your server on the cloud, is better to use a file storage provider on the cloud.
ScaffoldHub has two built-in cloud strategies: Google Cloud Storage and Amazon S3.
Google Cloud Storage
To use Google Cloud Storage, change the FILE_STORAGE_PROVIDER variable on the backend/.env file to use gcp.
# File Storage Provider# You must add the credentials of the provider at the# keys/storage directory. # local# gcp (Google Cloud Platform)# aws (Amazon Web Services)FILE_STORAGE_PROVIDER="gcp"
Make sure you do not block public files. Things like the workspace background image, workspace logo, and user avatar use files with public permissions for speeding purposes. Other files are by default private.
Save the bucket name on the FILE_STORAGE_BUCKET variable.
gsutil cors set gcp-cors.json gs://your-bucket-name
# File Storage Provider
# You must add the credentials of the provider at the
# keys/storage directory.
# local
# gcp (Google Cloud Platform)
# aws (Amazon Web Services)
FILE_STORAGE_PROVIDER = "aws"
# Bucket used for file storage
# Only for GCP and AWS
FILE_STORAGE_BUCKET="scaffoldhub-doc-file-storage"
# Only needed if using aws as the File storage provider
AWS_ACCESS_KEY_ID=""
AWS_SECRET_ACCESS_KEY=""
AWS_REGION=