SSL certs need updating annually and will be provided by the system admin.
# switch user to root
sudo su
cd /srv/certs
# backup the cert and key
cp unpathd.ads.ac.uk.crt unpathd.ads.ac.uk.crt-old && cp unpathd.ads.ac.uk.key unpathd.ads.ac.uk.key-old
# note the directory where the system admin puts the certs might be different to the one below
cd /home/adssys/TEMP/certs
# concatenate the certs
cat unpathd.ads.ac.uk.pem Sectigo_Public_Server_Authentication_CA_OV_E36.pem Sectigo_Public_Server_Authentication_Root_E46.pem > bundle.pem
# move the concatenated cert and key
mv bundle.pem /srv/certs/unpathd.ads.ac.uk.crt && mv unpathd.ads.ac.uk.key /srv/certs/unpathd.ads.ac.uk.key
# restart nginx
docker container restart nginx-proxy
# *check everything is working* before removing the backups...
rm /srv/certs/*-old- Copy the contents of /srv from the old VM to the new one.
- Ask ITS to grant outgoing access.
- Install Docker and add yourself to the docker group:
sudo groupadd docker
sudo usermod -aG docker $USER
newgrp docker- Run:
cd /srv/ads-unpathd-portal
docker compose -f docker-compose.production.yml up --build -d- Ask ITS to grant incoming access.
- Create a hosts entry on your machine to point unpathd.ads.ac.uk at the new VM's IP.
- When everything is working request a DNS change to point at the new VM.