File tree 2 files changed +12
-1
lines changed
2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 24
24
"MAIL_ENABLED" : " REPLACE_IN_PIPELINE" ,
25
25
"STATIC_ROOT" : " REPLACE_IN_PIPELINE" ,
26
26
"STATIC_URL" : " REPLACE_IN_PIPELINE" ,
27
- "AWS_STORAGE_BUCKET_NAME" : " REPLACE_IN_PIPELINE"
27
+ "AWS_STORAGE_BUCKET_NAME" : " REPLACE_IN_PIPELINE" ,
28
+ "AWS_S3_CUSTOM_DOMAIN" : " ${AWS_S3_CUSTOM_DOMAIN}" ,
29
+ "AWS_LOCATION" : " ${AWS_LOCATION}" ,
30
+ "AWS_DEFAULT_ACL" : " ${AWS_DEFAULT_ACL}"
28
31
}
29
32
}
30
33
]
Original file line number Diff line number Diff line change 63
63
# STATIC_ROOT = get_static_root(BASE_DIR)
64
64
STATIC_ROOT = os .getenv ("STATIC_ROOT" , BASE_DIR / "static" )
65
65
STATIC_URL = os .getenv ("STATIC_URL" , "/static/" )
66
+ STATICFILES_DIRS = ["static" ]
66
67
68
+ # https://django-storages.readthedocs.io/en/latest/backends/amazon-S3.html#settings
67
69
AWS_STORAGE_BUCKET_NAME = os .getenv ("AWS_STORAGE_BUCKET_NAME" )
70
+ AWS_S3_CUSTOM_DOMAIN = os .getenv ("AWS_S3_CUSTOM_DOMAIN" )
71
+ AWS_LOCATION = os .getenv ("AWS_LOCATION" )
72
+ AWS_DEFAULT_ACL = os .getenv ("AWS_DEFAULT_ACL" )
73
+ AWS_S3_ADDRESSING_STYLE = os .getenv ("AWS_S3_ADDRESSING_STYLE" )
74
+ AWS_S3_REGION_NAME = os .getenv ("AWS_S3_REGION_NAME" )
75
+
68
76
if AWS_STORAGE_BUCKET_NAME :
69
77
DEFAULT_FILE_STORAGE = "storages.backends.s3.S3Storage"
70
78
STATICFILES_STORAGE = "storages.backends.s3.S3Storage"
You can’t perform that action at this time.
0 commit comments