Nc with nginx timeout error

I used nc untill yesterday and all was ok.
Yesterday i tried to install cloudcmd but unsuccesfully and since then i cannot login to nc.
I removed the container and image of cloudcmd but nc is not working.
I get timeout error.
I changed the timeout to 300 in the php file and in the www file but still no help.

Restarted nginx
No help

Restart docker container of nc and mariadb
No help

Any idea?