I was thinking of migrating from amazon s3 to do spaces, so I tried to follow the tutorial to see if everything works correctly first (https://www.digitalocean.com/community/tutorials/how-to-set-up-object-storage-with-django).
I am getting a 403 Forbidden on all static files requests.
Here the complete response:
<Error>
<Code>SignatureDoesNotMatch</Code>
<RequestId>tx000000000000012168f55-005a2bfa78-ae42-ams3a</RequestId>
<HostId>ae42-ams3a-ams3</HostId>
</Error>
I think it could be something related to the querystring parameters:
X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20171209T145755Z&X-Amz-SignedHeaders=host&X-Amz-Expires=3600&X-Amz-Credential=3QGXL2PSTPREVDKT3AJG/20171209/eu-central-1/s3/aws4_request&X-Amz-Signature=7cbb313fc375d42efc60fcdc5a55ed4da1c4f168b440581145733b82e9cb6a29
The settings.py file is identical except for AWS_S3_ENDPOINT_URL = 'https://nyc3.digitaloceanspaces.com' setting, which in my case is AWS_S3_ENDPOINT_URL = 'https://ams3.digitaloceanspaces.com'
Any hints?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Nvm, I found this ticket https://github.com/jschneier/django-storages/issues/395 which explains the correct usage.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.