Giter Site home page Giter Site logo

Comments (5)

krancour avatar krancour commented on August 22, 2024

I'm ok with that in theory, but the tricky thing about this that we can only pick what IP nginx binds to. I could be wrong, but I don't think there's any way to bind individual vhosts (server blocks) to specific IPs.

What if I could achieve the same thing through a different trick? What if I were to use the allow and deny directives to allow incoming requests to the stats endpoint from 127.0.0.1 only and drop all others? Would that help?

from router.

jchauncey avatar jchauncey commented on August 22, 2024

sure as long as I can access it from within the pod

from router.

krancour avatar krancour commented on August 22, 2024

Would you care if it ended up on port 9090? I expose a server there that never uses proxy protocol (this is mainly for the sake of HTTP-based healthchecks from load balancers) since the default server may or may not be using it. We wouldn't want that in play if you're making an HTTP request from within the pod, so adding the stats endpoint to the default server on 9090 would ensure that.

from router.

jchauncey avatar jchauncey commented on August 22, 2024

Nope as long as its always that port we should be fine. Granted this might have to change slightly when I get around to pulling stats from this but for now it should work.

from router.

krancour avatar krancour commented on August 22, 2024

Possibly related to #90

from router.

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.