I've set up Upsource to work behind a nginx as a reverse proxy just like it's described here: https://www.jetbrains.com/upsource/help/1.0/install_config.html#http-proxy
Base URL is configured like http://10.233.106.177:38280/. It's address of reverse proxy.
Everything looks fine except one thing: redirects to the wrong URL during each login/logout attempt.
For instance I'm clicking "Logout". First request is going here:
With this request I'm obtaining 303 status and header Location with the next URL:
Obviously second request is going nowhere 'cause correct port (38280) is missing. Ok I'm manually putting port there and sending request again. Result is the same - 303 and redirect to the URL without correct port number. After several manual manipulations with the port I've finally logged out. The same story with the login.
First I've checked data/hub/conf/hub-config.properties file. Each URL in this file contains correct port number. Then I've a little bit investigated log files and found there one strange record:
[JetPassUrlDAO ] CAS URL: http://10.233.106.177/hub
Probably this record is somehow connected with my problem. So my question is what could be the reason of such a behavior? Look forward to your reply.