You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Not recieving original customer ip in the user.ip tag #554
We run the default config from this repository.
our website(vue project) posts client side errors to sentry.
the user.ip tag from these errors is shown as the gateway ip of the docker network the stack runs in.
we would expect the public ip of the client in this tag.
the nginx config is default and uses x-forwarded-for header config.
we already did some testing with SENTRY_USE_X_FORWARDED_FOR = True and SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
with no positive result so far.
we currently have no luck finding related info on the documentation and other github issues are either older then 2 years or don't seem to have a definitive answer.
Reacted by Heart Dance, Hayden, Inlink Oü, Viktor Bakurin and KagXaef
This is unfortunately a bug in Docker itself: moby/moby#15086. The only viable solution seems to be adding an HTTP load balancer in front (or something like CloudFlare) and then modify the nginx config to use the headers they pass down for the real client IP.
Will keep the issue open so we don't forget to document this.
Activity
BYK commentedon Jul 15, 2020
This is unfortunately a bug in Docker itself: moby/moby#15086. The only viable solution seems to be adding an HTTP load balancer in front (or something like CloudFlare) and then modify the nginx config to use the headers they pass down for the real client IP.
Will keep the issue open so we don't forget to document this.
BYK commentedon Jul 15, 2020
/ping @mattrobenolt in case he has any other suggestions.
VentyCZ commentedon Jul 18, 2020
I had this issue, just fixed it by updating nginx/nginx.conf file:
Just replaced $remote_addr with $proxy_add_x_forwarded_for.
If you want the external ip in logs, also update "log_format" line.
feat(onpremise): Add on-premise basics documentation
feat(onpremise): Add on-premise basics documentation (#119)
feat(onpremise): Add on-premise basics documentation (#119)
feat(onpremise): Add on-premise basics documentation (#119)