Solution:
I found the solution at the bottom of this page.
I am now using Rename wp-login.php with the following code in my nginx conf file:
location = /renamedloginurl/ { try_files $uri $uri/ /index.php?q=$request_uri; }