Hello,
I am running the latest Plesk on the latest stable Debian. After one of my sites experienced a 504 Nginx Gateway Error I followed the official Plesk resolution advice on the following site:
https://kb.plesk.com/en/120210
I edited the nginx.conf as stated.
At the end it says: Restart...