rllc / llc-archives

Archived sermons, backed by the cloud
https://llc-archives.herokuapp.com
MIT License
1 stars 1 forks source link

AWS links need to be be region agnostic #39

Closed smcadams86 closed 9 years ago

smcadams86 commented 9 years ago

https://github.com/rllc/llc-archives/blob/a37a3bc649593bd319c2f3ef042f8d735a653414/src/main/groovy/org/llc/archive/service/ArchivedSermonsServiceImpl.groovy#L95 current has a hard coded amazon S3 url pointing to s3-us-west-2 This should be changed to s3.amazonaws.com

<Error>
<Code>PermanentRedirect</Code>
<Message>
The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint.
</Message>
<Bucket>phoenix-archives</Bucket>
<Endpoint>s3.amazonaws.com</Endpoint>
<RequestId>93C8E90247E629B7</RequestId>
<HostId>
ivU1FTm2aEDtMGIrum8Vie2VR9O3BV+Chb9d7iu41z6LDPejxSzexa30Gu1rIhAF1HShXWNSyfQ=
</HostId>
</Error>

This will require running a query to update all existing MP3 file URLs in the database