You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
554 B

  1. from .base import * # noqa: F403
  2. from .base import env
  3. MIDDLEWARE.append("api.middleware.RangesMiddleware") # noqa: F405
  4. DJANGO_DRF_FILEPOND_STORAGES_BACKEND = "storages.backends.s3boto3.S3Boto3Storage"
  5. AWS_ACCESS_KEY_ID = env("AWS_ACCESS_KEY_ID")
  6. AWS_SECRET_ACCESS_KEY = env("AWS_SECRET_ACCESS_KEY")
  7. AWS_S3_REGION_NAME = env("REGION_NAME", "us-west-1")
  8. AWS_STORAGE_BUCKET_NAME = env("BUCKET_NAME", "doccano")
  9. AWS_S3_ENDPOINT_URL = env("AWS_S3_ENDPOINT_URL", None)
  10. AWS_DEFAULT_ACL = "private"
  11. AWS_BUCKET_ACL = "private"
  12. AWS_AUTO_CREATE_BUCKET = True