File tree Expand file tree Collapse file tree
landolfio/website/settings Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5353DJANGO_DRF_FILEPOND_UPLOAD_TMP = os .path .join (MEDIA_ROOT , "filepond-temp-uploads" )
5454DJANGO_DRF_FILEPOND_ALLOW_EXTERNAL_UPLOAD_DIR = True
5555
56- DEFAULT_FILE_STORAGE = "storages.backends.s3boto3.S3Boto3Storage"
57- DJANGO_DRF_FILEPOND_STORAGES_BACKEND = "storages.backends.s3boto3.S3Boto3Storage"
58-
5956# We do this in our reverse proxy, no need to do it here
6057SECURE_SSL_REDIRECT = False
6158
109106EMAIL_DEFAULT_SENDER = os .environ .get ("SMTP_FROM" , None )
110107DEFAULT_FROM_EMAIL = os .environ .get ("SMTP_FROM_EMAIL" , None )
111108SERVER_EMAIL = os .environ .get ("SMTP_FROM" , None )
109+
110+
111+ # Force S3 storage in production (no fallback!)
112+ DEFAULT_FILE_STORAGE = "storages.backends.s3boto3.S3Boto3Storage"
113+ DJANGO_DRF_FILEPOND_STORAGES_BACKEND = "storages.backends.s3boto3.S3Boto3Storage"
114+ AWS_S3_SIGNATURE_VERSION = "s3v4"
115+ AWS_S3_FILE_OVERWRITE = False
116+ AWS_DEFAULT_ACL = None
117+ AWS_ACCESS_KEY_ID = os .environ .get ("AWS_ACCESS_KEY_ID" )
118+ AWS_SECRET_ACCESS_KEY = os .environ .get ("AWS_SECRET_ACCESS_KEY" )
119+ AWS_STORAGE_BUCKET_NAME = os .environ .get ("AWS_STORAGE_BUCKET_NAME" )
120+ AWS_S3_REGION_NAME = os .environ .get ("AWS_S3_REGION_NAME" )
You can’t perform that action at this time.
0 commit comments