Skip to content

Commit

Permalink
Add S3StorageMixin to DockerComposeProductionConfiguration (#616)
Browse files Browse the repository at this point in the history
* Add S3StorageMixin to DockerComposeProductionConfiguration

* Use env var names in comment

Co-authored-by: Zach Mullen <[email protected]>

Co-authored-by: Zach Mullen <[email protected]>
  • Loading branch information
annehaley and zachmullen authored Oct 13, 2022
1 parent d5be52e commit 525889c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions miqa/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
ProductionBaseConfiguration,
SmtpEmailMixin,
TestingBaseConfiguration,
S3StorageMixin,
)
from composed_configuration._configuration import _BaseConfiguration
from configurations import values
Expand Down Expand Up @@ -107,12 +108,19 @@ class DockerComposeProductionConfiguration(
MiqaMixin,
SmtpEmailMixin,
HttpsMixin,
S3StorageMixin,
_BaseConfiguration,
):
"""For the production deployment using docker-compose."""

MIQA_URL_PREFIX = values.Value(environ=True, default='/')

# Configure connection to S3 bucket by setting the following environment variables:
# AWS_DEFAULT_REGION
# AWS_ACCESS_KEY_ID
# AWS_SECRET_ACCESS_KEY
# DJANGO_STORAGE_BUCKET_NAME

# Needed to support the reverse proxy configuration
USE_X_FORWARDED_HOST = True

Expand Down

0 comments on commit 525889c

Please sign in to comment.