Thanks for your help. I solved it as follows.
location ~* \.(exe)$ {
proxy_pass http://127.0.0.1:4545;
allow 192.168.1.1/32;
deny all;
}
Best.
Posted at Nginx Forum: https://forum.nginx.org/read.php?2,290354,290412#msg-290412