Getting SignatureDoesNotMatch with DigitalOcean spaces
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:
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'
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×