AWS deployment is not working due to localhost in GET request

System Information
  • Strapi Version: 4.1.3
  • Operating System: Mac
  • Database: postgres
  • Node Version: 17.7.1
  • NPM Version: 8.5.2
  • Yarn Version: NA

I am trying to install Strapi on AWS Lightsail, following is done and tested:

  1. Installed node via nvm (Tested)
  2. Installed postgres and setup username & password (Tested)
  3. Installed Nginx and setup by default file settings (Tested)
  4. Installed strapi in /var/www/html/strapiapp folder

Issue I am facing: Everything is working but strapi frontend admin ui cannot load GET data and it set host to LOCAHOST in all the urls (Check image)

Let me know for further information.