Skip to content

Commit

Permalink
#56 moved cdn settings from old docs to new docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ephes committed Jun 26, 2024
1 parent 35fdc83 commit f33f144
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions docs/settings.rst
Original file line number Diff line number Diff line change
Expand Up @@ -161,3 +161,21 @@ to ``"django"``.
.. code-block:: python
CAST_REPOSITORY = "django"
*********************************
Using a CDN (AWS S3 + Cloudfront)
*********************************

When using a CDN, s3 with cloudfront for example, there are some settings
to put in your production config which are not really obvious:

.. code-block:: python
AWS_AUTO_CREATE_BUCKET = True
AWS_S3_REGION_NAME = 'eu-central-1' # if your region differs from default
AWS_S3_SIGNATURE_VERSION = 's3v4'
AWS_S3_FILE_OVERWRITE = True
AWS_S3_CUSTOM_DOMAIN = env('CLOUDFRONT_DOMAIN')
Took me some time to figure out these settings. Those are additional settings,
assumed you already used the django-cookiecutter template.

0 comments on commit f33f144

Please sign in to comment.