Skip to content

Commit

Permalink
feat(s3): Add region/endpoint settings for uploads
Browse files Browse the repository at this point in the history
  • Loading branch information
cogk committed Sep 17, 2024
1 parent 779b7c1 commit 6c37b0a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
16 changes: 14 additions & 2 deletions press/press/doctype/press_settings/press_settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,12 @@
"auto_update_queue_size",
"remote_files_section",
"remote_uploads_bucket",
"remote_link_expiry",
"remote_uploads_region",
"remote_uploads_endpoint",
"column_break_51",
"remote_access_key_id",
"remote_secret_access_key",
"remote_link_expiry",
"product_documentation_section",
"publish_docs",
"storage_and_disk_limits_section",
Expand Down Expand Up @@ -1227,11 +1229,21 @@
"fieldname": "usage_record_creation_batch_size",
"fieldtype": "Int",
"label": "Usage Record Creation Batch Size"
},
{
"fieldname": "remote_uploads_region",
"fieldtype": "Data",
"label": "Uploads Bucket Region"
},
{
"fieldname": "remote_uploads_endpoint",
"fieldtype": "Data",
"label": "Uploads Bucket Endpoint"
}
],
"issingle": 1,
"links": [],
"modified": "2024-08-19 17:47:53.603250",
"modified": "2024-09-17 14:32:09.101920",
"modified_by": "Administrator",
"module": "Press",
"name": "Press Settings",
Expand Down
2 changes: 2 additions & 0 deletions press/press/doctype/press_settings/press_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ class PressSettings(Document):
remote_link_expiry: DF.Int
remote_secret_access_key: DF.Password | None
remote_uploads_bucket: DF.Data | None
remote_uploads_endpoint: DF.Data | None
remote_uploads_region: DF.Data | None
root_domain: DF.Data | None
rsa_key_size: DF.Literal["2048", "3072", "4096"]
spaces_domain: DF.Link | None
Expand Down

0 comments on commit 6c37b0a

Please sign in to comment.