ajvondrak / remote_ip

A plug to rewrite the Plug.Conn's remote_ip based on forwarding headers.
MIT License
252 stars 31 forks source link

Read runtime environment variables #21

Closed almirsarajcic closed 3 years ago

almirsarajcic commented 4 years ago

This PR enables users to read environment variables during runtime or provide custom logic.

I'm using this to set proxy IP for each Ingress in Kubernetes.

ajvondrak commented 3 years ago

Thanks, this was definitely a hole in the library! 💜

However, I'm closing this PR in favor of the implementation in eaf31c00e8bed39db72c656cbb1915c581f958be & f86a5e66c8c12a15708c22af36a2ff979ff0c03c, which works a bit differently. Once everything is fully baked, the feature will go in the next release.