Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Made requested change: added documentation for new settings keys

NyanKiyoshi2acb1a0a48c0
diff --git a/docs/deployment/s3.rst b/docs/deployment/s3.rst
index 34a05c3f27..ae0623cb6b 100644
--- a/docs/deployment/s3.rst
+++ b/docs/deployment/s3.rst
@@ -5,7 +5,8 @@ Storing Files on Amazon S3
If you're using containers for deployment (including Docker and Heroku) you'll want to avoid storing files in the container's volatile filesystem. This integration allows you to delegate storing such files to `Amazon's S3 service <https://aws.amazon.com/s3/>`_.
-Set the following environment variables to use S3 to store and serve media files:
+Base configuration
+------------------
``AWS_ACCESS_KEY_ID``
Your AWS access key.
@@ -13,9 +14,30 @@ Set the following environment variables to use S3 to store and serve media files
``AWS_SECRET_ACCESS_KEY``
Your AWS secret access key.
+Serving media files with a S3 bucket
+------------------------------------
+
+If you want to store and serve media files, set the following environment
+variable to use S3 as media bucket:
+
``AWS_MEDIA_BUCKET_NAME``
The S3 bucket name to use for media files.
+If you are intending into using a custom domain for your media S3 bucket,
+you can set this environment variable to your custom S3 media domain:
+
+``AWS_MEDIA_CUSTOM_DOMAIN``
+ The S3 custom domain to use for the media bucket.
+
+
+.. note::
+ The media files are every data uploaded through the dashboard
+ (product images, category images, etc.)
+
+
+Serving static files with a S3 bucket
+-------------------------------------
+
By default static files (such as CSS and JS files required to display your pages) will be served by the application server.
If you intend to use S3 for your static files as well, set an additional environment variable:
@@ -23,4 +45,9 @@ If you intend to use S3 for your static files as well, set an additional environ
``AWS_STORAGE_BUCKET_NAME``
The S3 bucket name to use for static files.
+If you are intending into using a custom domain for your static S3 bucket,
+you can set this environment variable to your custom S3 domain:
+
+``AWS_STATIC_CUSTOM_DOMAIN``
+ The S3 custom domain to use for the static bucket.