wordpress needs to access your web server. please enter your ftp credentials. nginx code example
Example: To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host
define( 'FS_METHOD', 'direct' );