Skip to content

Commit 525889c

Browse files
Add S3StorageMixin to DockerComposeProductionConfiguration (#616)
* Add S3StorageMixin to DockerComposeProductionConfiguration * Use env var names in comment Co-authored-by: Zach Mullen <zach.mullen@kitware.com> Co-authored-by: Zach Mullen <zach.mullen@kitware.com>
1 parent d5be52e commit 525889c

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

miqa/settings.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
ProductionBaseConfiguration,
1313
SmtpEmailMixin,
1414
TestingBaseConfiguration,
15+
S3StorageMixin,
1516
)
1617
from composed_configuration._configuration import _BaseConfiguration
1718
from configurations import values
@@ -107,12 +108,19 @@ class DockerComposeProductionConfiguration(
107108
MiqaMixin,
108109
SmtpEmailMixin,
109110
HttpsMixin,
111+
S3StorageMixin,
110112
_BaseConfiguration,
111113
):
112114
"""For the production deployment using docker-compose."""
113115

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

118+
# Configure connection to S3 bucket by setting the following environment variables:
119+
# AWS_DEFAULT_REGION
120+
# AWS_ACCESS_KEY_ID
121+
# AWS_SECRET_ACCESS_KEY
122+
# DJANGO_STORAGE_BUCKET_NAME
123+
116124
# Needed to support the reverse proxy configuration
117125
USE_X_FORWARDED_HOST = True
118126

0 commit comments

Comments
 (0)