If you use containers for deployment (including Docker and Heroku), you should not store files within the container’s filesystem.
This integration allows you to delegate storing such files to Google Cloud Storage (GCS) service.
|Set an environment variable to a path of the json file.|
|Optional. Use the OAuth 2 credentials for the connection. The default is to infer them from |
|The GCS bucket name to use for the media files.|
|The GCS bucket name to use for the static files.|
|A custom endpoint to be used instead of https://storage.googleapis.com.|
|The number of seconds which a generated signed URL is valid for. Defaults to 86400 seconds (1 day).|
|Setting this to |
|ACL used when creating a new blob from the list of predefined ACLs.|
|Defaults to |
|Note: Using |
Serving media files from a GCS bucket
"Media files" are the files uploaded through the dashboard. They include product images, category images, and non-image files.
If you want to use GCS to store and serve media files, you need to configure at least the media bucket name (GS_MEDIA_BUCKET_NAME).
Serving static files from a GCS bucket
"Static files" are assets required for Saleor to operate. They include assets used in default email templates.
If you also intend to use GCS for your static files, you need to configure at least the bucket name (GS_BUCKET_NAME).
Cross-Origin Resource Sharing
<?xml version="1.0" encoding="UTF-8"?>