Add setting AWS_S3_PROXIES

This commit is contained in:
Michael Herrmann
2023-08-24 06:23:58 -07:00
parent e4f163de74
commit b4254b00c2
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -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 ##########
+1
View File
@@ -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'