Skip to content
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

Doesn't work behind Nginx reverse proxy #28

Open
cablespaghetti opened this issue Jul 19, 2019 · 7 comments
Open

Doesn't work behind Nginx reverse proxy #28

cablespaghetti opened this issue Jul 19, 2019 · 7 comments

Comments

@cablespaghetti
Copy link

Whilst this seems to be reliable when accessed directly, when behind my Kubernetes cluster's Nginx ingress I get a lot of "upstream prematurely closed connection while sending to client" errors and Chrome fails to load a high percentage of the resources. If I request a single file using curl it seems to work. This is using HTTP/1.1.

@thomasmhofmann
Copy link

@cablespaghetti Did you find a solution? I am experiencing something similar. Although the ingress does not seem to be a problem a keycloak gatekeeper proxy between the ingress and the s3-proxy does not work with larger files.

@wesmcouch
Copy link
Contributor

wesmcouch commented Oct 15, 2019

This fork solved my issues https://github.com/daveoxley/aws-s3-proxy This fork has been causing me issues and crashing

@cablespaghetti
Copy link
Author

@thomasmhofmann @wesmcouch Sorry not found a solution. It would be really good to have a version of this I could use in production.

@Dirrk
Copy link

Dirrk commented Oct 22, 2019

@cablespaghetti I was having this issue when behind an aws alb, and I solved it by setting CONTENT_ENCODING=false in the env. Which is actually enabled by default, but documented incorrectly (see #21). Hopefully this will help you

@pottava
Copy link
Owner

pottava commented Nov 3, 2019

Sorry for the inconvenience, everyone! @Dirrk Thanks for the advice. I hope it works.

Since I fixed this issue (#20) recently as well, you may not have to change any configurations.

@cablespaghetti
Copy link
Author

Great thanks. I'll try the new version as soon as I can.

@thomasmhofmann
Copy link

Just for the record. My problem was not related to aws-s3-proxy. It was a keycloak gatekeeper in front of the proxy that needed to be configured for longer timeouts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants