Follow the steps below to install Team City 9.0.3 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/sandcastle/9282638/raw/teamcity-install.sh -O /tmp/teamcity-install.sh
sudo sh /tmp/teamcity-install.sh
sudo rm -rf /tmp/teamcity-install.sh
Install Postgres 9.3:
See postgres-9-3.md below
Update the database settings:
sudo nano /srv/.BuildServer/config/database.properties
Install Nginx:
#will proxy port 80 to team city on 8111
sudo wget -c https://gist.githubusercontent.com/sandcastle/9282638/raw/nginx.sh -O /tmp/nginx.sh
sudo sh /tmp/nginx.sh
sudo rm -rf /tmp/nginx.sh
Update nginx config:
sudo nano /etc/nginx/sites-available/teamcity
Remove the default ngnix server:
sudo rm -rf /etc/nginx/sites-enabled/default
sudo rm -rf /etc/nginx/sites-available/default
Start it up:
sudo /etc/init.d/nginx start
sudo /etc/init.d/teamcity start
Commands:
#start team city
sudo /etc/init.d/teamcity start
#stop team city
sudo /etc/init.d/teamcity stop
#star nginx
sudo /etc/init.d/nginx start
#stop nginx
sudo /etc/init.d/nginx stop
#reload nginx
sudo /etc/init.d/nginx reload
#test team city on port 8111
curl http://localhost:8111
#test team city on port 80
curl http://localhost:80
Not sure much has changed, but would be nice to be updated to TC 9.1 and how we go about enabling TLS in Nginx