Let login redirects work in nginx proxy