I just thought: is it possible for you to use Lufi directly as HaProxy backend instead of going through Nginx? Who knows, it may work.
Thx for your response Luc. I tried this and that works !
For my lufi config file, i just changed this line :
listen => ['http://
And i I kept the following line :proxy => 1,