I have a problem with nginx. When I use the site directly everything works fine but as soon as I setup a reverse proxy (doesn't matter if its another nginx or haproxy) I get 504 Gateway Time-out when I try to submit forms with content bigger then about 64k. Everything else works as expected with or without proxy