Follow the steps below to install Team City 9.1.6 on Ubuntu with Nginx as the proxy for port 80.
Install Team City:
# will install on port 8111
sudo wget -c https://gist.githubusercontent.com/uglide/280b502c8be6fe46039b/raw/teamcity-install.sh -O /tmp/teamcity-install.sh