huahua I'm not very familiar with Docker, but either there is a config flag in Docket config for that (I'm not sure, the answers I see when searching online seem very laborious), or you can configure your server like a regular reverse proxy:
- In your host server, use nginx or apache to pass the request to the Docker container, while adding an
X-Forwarded-For
header
- Then, inside the Flarum container, configure nginx or apache to restore the original IP from the header
I don't think we have an extension for Flarum to automatically restore an IP from the X-Forwarded-For
header. But I don't think this would be sufficient on its own unless Docker or an existing reverse proxy you have already adds that header to the incoming request.
It's not something specific to this extension, the same issue likely affects all other Flarum features and third-party extensions, like the post IP visible when clicking the post date.