I have the exact same problem!
Was hoping someone in this thraed already solved it but sadly there are no replys
Only difference for me is that I use another apache reverseproxy between bitwarden and public access.
172.X.X.X should definitely be the internal docker IP address. But I dont’t know how to forward (or something like that) the real accessing IP adresses to to container. This issue also causes wrong e-mail notifications for me btw. If I login on a new device the e-mail I receive also shows this internal IP address instead of my real one.
For clarification: my Bitwarden is selfhosted using docker.
Would be very happy if someone could help us out with that
Okay, after some more resreach and reading some recent other forum posts I finally found the solution:
It’s actually very easy I I feel kind of stupid now that it took me SO long to finally fix this.
You just have to set the “real_ips” parameter in the config.yml. I always misinterpreted this parameter which is why I discarded these approaches.
It already is enough to just set the container ip there but because of other proxy addesses appearing for after that I just included the whole private subnet here.
So this is my configuration of …./bwdata/config.yml that did the trick:
real_ips:
- 172.16.0.0/12
Of course you have to perform a “bitwarden.sh rebuild” and “bitwarden.sh start” after it