mirror of
https://github.com/matrix-org/synapse-s3-storage-provider.git
synced 2024-10-23 07:29:40 +00:00
commit
3d4cc94a0f
1 changed files with 7 additions and 1 deletions
|
@ -405,6 +405,12 @@ def main():
|
||||||
help="Deletes local copy from media store on succesful upload",
|
help="Deletes local copy from media store on succesful upload",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
upload_parser.add_argument(
|
||||||
|
"--endpoint-url",
|
||||||
|
help="S3 endpoint url to use",
|
||||||
|
default=None
|
||||||
|
)
|
||||||
|
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
if args.cmd == "write":
|
if args.cmd == "write":
|
||||||
|
@ -432,7 +438,7 @@ def main():
|
||||||
|
|
||||||
if args.cmd == "upload":
|
if args.cmd == "upload":
|
||||||
sqlite_conn = get_sqlite_conn(parser)
|
sqlite_conn = get_sqlite_conn(parser)
|
||||||
s3 = boto3.client("s3")
|
s3 = boto3.client("s3", endpoint_url=args.endpoint_url)
|
||||||
run_upload(
|
run_upload(
|
||||||
s3,
|
s3,
|
||||||
args.bucket,
|
args.bucket,
|
||||||
|
|
Loading…
Reference in a new issue