vendredi 18 août 2017

ember, nginx, reverse proxy

I have my app deployed to a file server here at: http://ift.tt/2fR3TsO

We want our app to be facing at: http://amazingapp.com

So far this is what I have on nginx

server {
  listen 80;
  server_name http://amazingapp.com;
  location / {
      proxy_pass http://ift.tt/2fR3TsO;
  }
}

This works for initial http://amazingapp.com but any subsequent requests http://ift.tt/2id2MnV result in 404

Most of the ember deploy examples have the file being served from the same location as the web server, using try_files $uri $uri/ index.html So i don't believe i'm able to go down that path?

I've tried using regex on the location but that requires the proxy_pass to have parameters.

If you could point me in the right direction would be so grateful. Thanks in advance!




Aucun commentaire:

Enregistrer un commentaire