Giter Club home page Giter Club logo

Comments (7)

agschwender avatar agschwender commented on July 28, 2024

Yeah, booted up a server and a cloudfront distribution real quick to confirm:

http://dghjy72o6k9e2.cloudfront.net/?url=http%3A%2F%2Fec2-54-191-135-3.us-west-2.compute.amazonaws.com%2Fstatic%2Flandscape.jpg&w=300
http://dghjy72o6k9e2.cloudfront.net/?url=http%3A%2F%2Fec2-54-191-135-3.us-west-2.compute.amazonaws.com%2Fstatic%2Flandscape.jpg&w=500

You need to turn on the flag that indicates query parameters should be passed to your server. If you don't mind, just let me know when you've taken a look so I can shut it down.

If you don't want to pass query parameters because you're concerned about caching performance, you can modify your web server to rewrite the urls to the query parameters that pilbox needs. For example,

/resize/crop/100x100/http%3A%2F%2Fexample.org%2Ffoo.jpg 

would be translated to

?op=resize&mode=crop&w=100&h=100&url=http%3A%2F%2Fexample.org%2Ffoo.jpg

Or whatever url format you think is appropriate.

from pilbox.

agschwender avatar agschwender commented on July 28, 2024

Just shutdown cloudfront and the ec2 instance I was using to test, so the links above will no longer work. But, yeah, you should have no problem using cloudfront.

from pilbox.

Katafalkas avatar Katafalkas commented on July 28, 2024

Hey,

Cheers for reply. Sorry it took me so long to get back toy you. I am trying to do the same, but cant get it working. I get the:

ERROR

The request could not be satisfied.


Generated by cloudfront (CloudFront)

error.

As you mentioned above I have enabled the Forward Query Strings option.

from pilbox.

agschwender avatar agschwender commented on July 28, 2024

I assume you have some kind of webserver in front of pilbox. Are you seeing the cloudfront requests in your access logs?

from pilbox.

Katafalkas avatar Katafalkas commented on July 28, 2024

Hey,

Yeah. I see no requests to NGINX and no tcp packets either using tcpdump dst port 80

from pilbox.

agschwender avatar agschwender commented on July 28, 2024

I suspect then that it's more a problem with how configured cloudfront to talk to your server or your server being unable to receive request, and less an issue with pilbox. That is, you should be seeing things in your access log regardless of the backend that you're using to serve your requests.

from pilbox.

Katafalkas avatar Katafalkas commented on July 28, 2024

ok. figured it out. it was to do with infrastructure internals .. cheers for support !

from pilbox.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.