Finally had time to resolve this issue. See details below:
Solved: Discourse deployed via 1Panel shows all user IPs as coming from Cloudflare instead of the user’s real browser IP - Support - Discourse Meta