Giter Club home page Giter Club logo

Comments (3)

ricardochimal avatar ricardochimal commented on August 20, 2024

you could set it up behind nginx and catch anything doing /sessions/(\d+)/push*

I'm willing to consider accepting a patch to taps but to be honest i'm not sure how I feel about it

from taps.

seamusabshere avatar seamusabshere commented on August 20, 2024

hi,

Thanks for the tip! EngineYard put this in place for us:

upstream taps {
  server localhost:5000;
}

server {
  listen 5001;
  location / {
  if ($request_filename !~ /sessions/(\d+)/push.*) {
    proxy_pass http://taps;
  }
  }
}

Best,
Seamus

from taps.

seamusabshere avatar seamusabshere commented on August 20, 2024

Here's how to do it in Apache 2.2:

# make sure to enable mod_proxy and mod_proxy_http
Listen 5000
<VirtualHost _default_:5000>
  ServerName data.brighterplanet.com
  CustomLog /var/log/apache2/taps_proxy.access.log combined
  ProxyPass / http://127.0.0.1:4999/
  # allow most requests...
  <Location />
    Order Deny,Allow
    Allow from all
  </Location>
  # ... but deny any request containing "push"
  <LocationMatch push>
    Order Allow,Deny
    Deny from all
  </LocationMatch>
</VirtualHost>

from taps.

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.