mirror of
https://github.com/plankanban/planka.git
synced 2026-02-24 19:08:59 +03:00
Update Sails.js configuration to fix TRUST_PROXY flag #223
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @StevenJCorreia on GitHub (Aug 31, 2022).
After my I implemented #283, I finally got around to integrating it into my production server and noticed that the remote (client) IP address was not being correctly forwarded through the proxy.
I realized that this is due to Sails.js requiring that
http.trustProxybe aboolean, not anumberlike we are currently passing it. I assumed that Sails.js would just boolean-wrap the given value but it seems that is not the case here...With that being said, the intended fix here would be to simply boolean-wrap the value as, for some reason, the application breaks on initialization if
TRUST_PROXYis set to a boolean over a number within thedocker-composefile.Note: Funny enough, if you run this in development with
TRUST_PROXY=truein the.envfile, everything works - so maybe a docker-compose issue?Either way, let me know if I can go ahead and implement the fix.
@meltyshev commented on GitHub (Sep 2, 2022):
Sure! Please make a PR with a fix 🙏
@meltyshev commented on GitHub (Sep 3, 2022):
Fixed by https://github.com/plankanban/planka/pull/295. Thank you!