Removing ssl and regerating nginx

SSL for one domain was invalid so I backup up all the pem files and ran setup/start.sh again. This generated new certificates but nginx was using the old ones so they were invalid. I backup up nginx and ran start again but it only adds one line to nginx server_names_hash_bucket_size 128;. How can I reset nginx and regenerate it?

Are you using the built in let’s encrypt? Because if you are you should be using the SSL page in the admin panel to re-issue SSL certs.