diff --git a/README.md b/README.md index eac88c8..005d145 100644 --- a/README.md +++ b/README.md @@ -123,6 +123,8 @@ export AWS_DEFAULT_ACL=public-read export AWS_S3_CUSTOM_DOMAIN=cdn.winget.pro # To use a non-AWS S3 endpoint such as Linode, you can optionally set: export AWS_S3_HOST=us-east-1.linodeobjects.com +# Optionally configure the proxy for S3 access: +export AWS_S3_PROXIES="{'http': 'foo.bar:3128', 'http://hostname': 'foo.bar:4012'}" ######### Optional settings for using a pre-generated SSL certificate ########## diff --git a/core/settings.py b/core/settings.py index f91e13d..505ebfa 100644 --- a/core/settings.py +++ b/core/settings.py @@ -118,6 +118,7 @@ if DEFAULT_FILE_STORAGE == 'storages.backends.s3boto3.S3Boto3Storage': AWS_S3_ENDPOINT_URL = 'https://' + AWS_S3_HOST AWS_DEFAULT_ACL = os.getenv('AWS_DEFAULT_ACL') AWS_S3_CUSTOM_DOMAIN = os.getenv('AWS_S3_CUSTOM_DOMAIN') + AWS_S3_PROXIES = os.getenv('AWS_S3_PROXIES') DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'