Skip to content

Commit

Permalink
fix(settings): add s3 ssl settings (#698)
Browse files Browse the repository at this point in the history
* fix(settings): add s3 ssl settings

* chore(doc): add ssl settings
  • Loading branch information
Yelinz committed Jan 24, 2024
1 parent 9a0c69e commit c92b381
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CONFIGURATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,3 +134,5 @@ Optional:
- `AWS_LOCATION`: A path prefix that will be prepended to all uploads (default: "")
- `AWS_S3_FILE_OVERWRITE`: If `True` Files with the same name will overwrite each other. Otherwise extra characters are appended. (default: `False`)
- `AWS_S3_SIGNATURE_VERSION`: S3 signature version to use (default: `s2`)
- `AWS_S3_USE_SSL`: Whether or not to use SSL when connecting to S3 (default: `True`)
- `AWS_S3_VERIFY`: Whether or not to verify the connection to S3. Can be set to False to not verify SSL/TLS certificates. (default: `None`)
2 changes: 2 additions & 0 deletions document_merge_service/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,8 @@ def parse_admins(admins):
AWS_LOCATION = env.str("AWS_LOCATION", "")
AWS_S3_FILE_OVERWRITE = env.bool("AWS_S3_FILE_OVERWRITE", False)
AWS_S3_SIGNATURE_VERSION = env.str("AWS_S3_SIGNATURE_VERSION", "v2")
AWS_S3_USE_SSL = env.bool("AWS_S3_USE_SSL", default=True)
AWS_S3_VERIFY = env.bool("AWS_S3_VERIFY", default=None)

# unoconv
UNOCONV_ALLOWED_TYPES = env.list("UNOCOV_ALLOWED_TYPES", default=["pdf"])
Expand Down

0 comments on commit c92b381

Please sign in to comment.