I install Confluence according to the instructions using Nginx and proxy, I have an empty postgresql database. During installation, when selecting a database, I enter the database data, click test and everything is ok. However, when I click Next button, so that the application connects to this database, for about 2-3 minutes the page tries to reload and then pops up 504 Timeout Gateway error. At the same time CPU consumption reaches 100%, then I have to reset the VPS server.
I have no idea where the error is: have I configured something wrong somewhere? Is there something wrong with the database? or maybe the server does not withstand (1CPU, 2gb RAM)?