![]() * Improve documentation for TRUSTED_PROXY_IP The documentation previously only indicated that `localhost` was trusted, but it appears that all private networks are trusted by default. I believe this because: - I'm running my web and streaming processes within Docker containers and running Nginx on the Docker host. I believe they communicate over a 172.16.0.0/12 network that Docker creates. I tried looking at logs a bit and it _seems_ like things are working correctly. But if anyone has suggestions on how to verify that my Mastodon processes are recording the correct client IP, please let me know! We could include that advice in this documentation. - I looked at the source code a bit and it appears that both the streaming and web processes use localhost and the private network ranges. But this is really my first time looking at the Mastodon code and I don't even know Ruby, so please double check me! - I believe the streaming processes uses Express JS. I believe it sets the trusted proxy IP [here]( |
||
---|---|---|
.github/workflows | ||
archetypes | ||
assets | ||
content | ||
data | ||
i18n | ||
layouts | ||
static | ||
.gitignore | ||
.gitlab-ci.yml | ||
LICENSE | ||
README.md | ||
config.toml |
README.md
View the documentation at https://docs.joinmastodon.org