Proxying/Cloning API hosted only on an IP with evilginx

Hi,
I’m stuck with a issue that my test environment has a website based on next.js app but that website fetches data from an API that is hosted just on a IP address (e.g https://x3.xx.xx.45/).
So, I have to Proxy that IP So, it could work with phished domain, I would be great full if anyone can help me out.
Thanks,

  1. Setup on ubuntu
  2. edit /etc/hosts
  3. add xx.xx.xx.xx test.local ( replace xx with target ip )
  4. use test.local in phishlet
  5. run proxy :v: