-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create new public s3 bucket for static assets #601
Comments
Just for clarity, the name for this bucket should be under |
We're going to use the existing |
@LindsayYoung: The |
I mean, make the bucket URL fec.gov/resouces |
Ah okay, thanks! |
thank you |
It looks like this isn't possible, or at least not easy. Amazon's instructions are for S3 buckets created outside of cloud.gov, but this one is provisioned via a service. Furthermore, this also assumes you have access/control over the domain, which we do not. I asked in cloud.gov support and received a response about setting up a proxy config in something like If so, I need some help with that, my nginx-fu is not all that strong. |
Hi @jmhooper, would you by any chance know if the above is possible given the work you've been doing with Federalist? Please let me know if you need any additional background, we can sync up about this. |
In Federalist we have preview URLs that serve content from S3. We proxy the request to S3 and serve the content through our app. Here's that code that makes that work. If you want configure the proxy app to serve files directly from a S3 bucket (instead of proxying through the app), that should work. You can do that with nginx. Check out this reference documentation on reverse proxies. So, without actually trying it out, the location config would look something like this:
|
Thank you a ton, @jmhooper! |
Argh, so it looks like this is not possible in the current E/W environment. We need to create a new bucket with the |
A big thank you to @LindsayYoung for all of her help with this one! |
Closing this in favor of https://github.com/18F/openFEC/issues/2031 since we had to move to the GovCloud environment for this to work. |
In order to complete uploading of PDFs, we need to create a new public s3 bucket and give @patphongs access to it.
Once we do that, we can make a pretty URL ( #567 ) and rewrite asset paths ( #486 ).
The text was updated successfully, but these errors were encountered: