-
-
Notifications
You must be signed in to change notification settings - Fork 836
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
access source ip address #312
Comments
Hey, sorry for the late reply. So far there isn't support in webhook for fetching the source IP but it's on the roadmap and should be included in the next version. Current workaround is to put nginx in front of webhook and have it pass the source IP via X-Forwarded-For header, which you can then read using the webhook. |
Cool. Thanks for the response. It is good to know that it is on the roadmap. Feel free to close this if you like |
I'll close it once the feature lands in the development branch :-) |
Tagging this with #356 as it should provide a powerful mechanism to craft a solution to this problem. |
If we include this in webhook, here's a proposed usage:
Potentially relevant |
Is this still working? As I am getting the following error message:
|
I was hoping to be able to pass the source IP along to the script, but i couldn't find a way to access it through the request-values section
Am I missing something? Or is my only real option to parse the stdout of webhook and attempt to grab the last line with "incoming HTTP request from" (if that would even work...)
any pointers would be greatly appreciated!
The text was updated successfully, but these errors were encountered: