dphuang2 / PoGoBag

Analyze and share your Pokémon through a locally run server! Official Site access has been stopped as of 12/23/2016
146 stars 49 forks source link

Redirector page is incorrect #67

Open ghost opened 8 years ago

ghost commented 8 years ago

When the login is incorrect, the redirect page goes to http://127.0.0.1:3000static_pages/home, when I enter it correctly in the url, http://127.0.0.1:3000/static_pages/home, it works.

shoootyou commented 8 years ago

@blew888 Where are you running the app, on Windows, Linux or Mac?

ianstalk commented 8 years ago

Seeing a similar issue on OS X. It works fine locally, but it keeps redirecting incorrectly when I use nginx as a reverse proxy:

Redirected to http://192.168.1.249:9099static_pages/home

9099 is the port nginx is listening on, which is SSL only.

EDIT fixed the redirect issues in my nginx config by adding:

proxy_set_header X-Forwarded-Proto https;
ghost commented 8 years ago

Running on Windows 10. proxy_set_header didn't work for me, but I assume I need to set up the SSL certs?