endpoint
parameter provided by Digital Ocean Spaces. This value generally depends upon the region in which your bucket belongs. https://${REGION}.digitaloceanspaces.com
, where ${REGION} should be replaced by the region code for your region.https://sgp1.digitaloceanspaces.com
Similarly, find out the correct endpoint for the region that your bucket is configured in, and verify with Digital Ocean's official documentation.