Skip to content

Real IP Passing To hlswatch#11

Open
aminhusni wants to merge 8 commits intofaryon93:masterfrom
aminhusni:master
Open

Real IP Passing To hlswatch#11
aminhusni wants to merge 8 commits intofaryon93:masterfrom
aminhusni:master

Conversation

@aminhusni
Copy link
Copy Markdown

Fixed on Issue #10 where the Nginx proxy is not passing real IP to hlswatch.
This is fixed by making Nginx attach the original requester's IP to the X headers.
hlswatch then read these headers and extract the real IP.

Fixed on docker build problem #7

Fixed the issue of deprecated github URL for influxdata
Since the program is running behind an Nginx proxy, the requester's IP  has been corrected by using "X-Forwarded-For" and "X-Real-Ip" headers.
@faryon93
Copy link
Copy Markdown
Owner

faryon93 commented Feb 9, 2019

Hi Amin,
thank you for your pull request and your awesome work.
da9028d and 9a9eb47 should be merged to master as soon as possible.

Im not sure about excluding private IPs.

@aminhusni
Copy link
Copy Markdown
Author

The idea of excluding private IP was because the client might forward private IP in the chain of proxies that the client itself is using.

Perhaps it is a good idea to have an enable and disable the option that is read from the config file to filter out private IP?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants