I always get 504 timeout from my Ngnix server. I have no ideas why. But it happened when I tried to generate a PDF file from a Php program. I have tried to change parameters here and there in conf, but in vain. Any ideas?