mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-06 09:13:19 +03:00
Show external IP address in the audit when using Docker #472
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @edbourque0 on GitHub.
Feature description
Show external IP address in the audit page when using docker.
Pitch
Since docker uses the container’s network to communicate, I think it has issues getting the real client’s IP address so it logs it’s internal docker IP at every connection. This IP is also the one sent in suspicious activity email (and the condition that triggers it). So I think this would be something to look into. Also, could be cool to have the location (country ou city) of the IP.
@stonith404 commented on GitHub:
Do you have a reverse proxy in front? If so, did you set the
TRUST_PROXYenvironment variable to true?@edbourque0 commented on GitHub:
That was it, sorry about that.
Thanks!