commonknowledge / banmarchive

The Amiel Melburn Archive - an online database of socialist and radical writings
https://banmarchive.org.uk/
1 stars 0 forks source link

Custom s3 storage to handle digitalocean's approach to presigning a CDN url #13

Closed chrisdevereux closed 3 years ago

chrisdevereux commented 3 years ago

@conatus @janbaykara fyi

chrisdevereux commented 3 years ago

First pass: #10

But django storages seems to strip out the signing params when using the cdn. This is because amazon cloudfront has a different approach to signing cdn urls to digitalocean. Solved with a custom storage class.

Merging this will finally get this working on virginmedia. Can be ported to stopwatch.