Aws-s3 and digital ocean spaces error

Do you mind sharing your config for this? I am struggling with the same issue, but adding region did not solve it.