-
I currently have my nginx set to anonymize IPs for privacy (sets them to 127.0.0.2 except for Tor, which is 127.0.0.1). Is this why all my anon questions have the same author identifier? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
The anonymous author identifier is a hashed value based off of the request IP. If you want this data to be accessible by the application when proxied via nginx, you will need to set a |
Beta Was this translation helpful? Give feedback.
The anonymous author identifier is a hashed value based off of the request IP.
The code responsible for this can be found here:
https://github.com/Retrospring/retrospring/blob/main/app/models/anonymous_block.rb#L10
https://github.com/Retrospring/retrospring/blob/main/app/controllers/ajax/question_controller.rb#L34
If you want this data to be accessible by the application when proxied via nginx, you will need to set a
X-Forwarded-For
orX-Real-IP
header.