Modified the PHP location block to allow the API to function properly. Thanks to @halianelf for that. Added increased fastcgi timeout to account for actions on massive directories.