This tutorial assumes you are running Ubuntu, specifically version 16.04
log in to you user and directory
ghost stop
ghost config URL https://my-domain.com
rename folder, or move it.
You can either edit your nginx yourself or can run for ssl setup
ghost setup nginx ssl
If changing directory, you need to edit the following files
/var/www/FolderToGhostInstall/.ghost-cli
/var/www/FolderToGhostInstall/config.production.json
~/.ghost/config
if running systemd you may want to do the following
I would delete:
/var/www/FolderToGhostInstall/system/files/ghost_my-domain-com.service
/lib/systemd/system/ghost_my-domain-com.service
Then rerun the setup systemd command:
ghost setup systemd
now start ghost back up. (make sure you are in directory and user)
ghost start