GithubHelp home page GithubHelp logo

Comments (3)

izderadicka avatar izderadicka commented on June 29, 2024

Current log is using env_logger - which by default goes to stderr, but can be redirected to any file.
I think it could be worth to add bit more error reporting around authentication.

However consider this: most installations (including mine) are using reverse proxies - so probably more efficient solution for your problem would be to log 401 responses on reverse proxy (there you will see the client addresses and also can add some IP policies there).

from audioserve.

andrewrkerr avatar andrewrkerr commented on June 29, 2024

Thanks for the quick reply. I'm also using a reverse proxy (NPM), but not using the auth through it. I checked the logs of the reverse proxy, but it's only showing the docker host IP for the client instead of the actual client for the 401 error.

from audioserve.

izderadicka avatar izderadicka commented on June 29, 2024

Implemented in current master branch.
Basically two things were done:

  • all authentication and access failure are logged as error
  • added support to access remote ip in request
  • and added support to get remote ip from request headers, if behind reverse proxy.

Actually it turnout to be quite interesting problem - thanks to way how hyper works and thanks to possible reverse proxy in between user and audioserve.

If remote/client ip is to be show in log when audioserve is behind reverse proxy more work needs to be done - compile with optional feature behind-proxy and run with behind-proxy argument. Reverse proxy must be setup to add either Forwaded or X-Forwarded-For header to passed requests.

from audioserve.

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.