Giter Club home page Giter Club logo

cuttle's People

Contributors

mrkschan avatar nathanpalmer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

cuttle's Issues

Segmentation Fault

It seems like it segfaulted with the following conf file

Main: Forwarding request to https://name.myshopify.com:443/admin/shop.json
Segmentation fault (core dumped)
root@:/var/cuttle# cat cuttle.yml
addr: :3128
cacert: './cacert.pem'
cakey: './privkey.pem'
zones:
  - host: "*.myshopify.com"
    shared: false
    control: rps
    rate: 2
  - host: "*"
    shared: true
    control: noop

Use URL pattern to create a zone

Currently, cuttle only supports creating a zone by HOST. It is better to support creating a zone by URL. E.g. api.example.com/users/*/ creates zone per users/*/.

How to handle Http301/Http302?

There are few cases here.

  1. Redirects from unlimited zone A to rate limited zone B.
  2. Redirects from rate limited zone A to unlimited zone B.
  3. Redirects from rate limited zone A to rate limited zone B.
  4. Redirects from unlimited zone A to unlimited zone B.

use this behind corporate proxy?

I have a use case where I would like to use this behind a corporate proxy. Is there a setting I can add in main.go to facilitate the request being forwarded to the corporate proxy?

Deployment on Heroku

Hi @mrkschan, thanks for writing this. I'm wondering what state this is in, and if you have any idea if it can be deployed to heroku. Many thanks!

Limit to under 1 request per second?

We're looking for a solution to limit requests to an external API to slow down our requests (from multiple backend services) to conform with their rate limits. They have set a 30 request per minute limit which is going to be roughly ½ requests per second.

This doesn't seem to fit in with cuttle's configuration as anything under 0 is throwing an exception. I would essentially need to set a rate: .5 in the configuration I believe.

Support of TCP keep alive?

  • Does goproxy already support that?
  • Is this compatible with TLS/SSL MITM?
  • Does Cuttle really need to support it since Cuttle is a middleware living inside a data center?

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.