Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

144
Views
Which ec2 ip address should i give to nginx?

I am trying to set up a react app to proxy with nginx on an ec2 instance. I have server.js and react-scripts start already running on pm2 and they will deploy locally so i think it must be my config. For the record all the html is deployed at /actnow.

 server {
        server_name   EC2 Public;
        listen        127.0.0.1:80;
        root /var/www/factnow/client/build;
        error_page    500 502 503 504  /50x.html;

        location      / {
            proxy_pass http://EC2 Private:3000;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection 'upgrade';
        proxy_set_header Host $host;
        proxy_cache_bypass $http_upgrade;
        }
        location /actnow {

      index   index.html index.htm;
try_files /app/cache/ $uri @fallback;

}

    }

any help properly formatting this would be a life saver.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!