if ($request_method = POST) {
rewrite ^ /index.php break;
}
location = /index.php {
internal;
fastcgi_pass unix:/run/php/php7.3-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
location = / {
try_files $uri $uri/;
}