demo.mrmikenguyen.com/static/hello.html
TODO: Need to finish setting up Django.
Steps that were done. Will cleanup and update later!
- Manually spin up Ubuntu server in Linode. (Plan on using Terraform to deploy infra)
- SSH to server.
- Create user under sudo group 4. useradd -m -s /bin/bash -G sudo mike
- Change user password 6. passwd mike
- Check if user was created 8. cat /etc/passwd
- Switch to mike user 10. su mike
- Change hostname through systemd 12. sudo hostnamectl set-hostname mike-systems
- Reload shell 14. bash
- In server for extra security and to auth by ssh without password auth "sudo vim /etc/ssh/sshd_config" change PermitRootLogin to "no", PubKeyAuthentication to "yes" and PasswordAuthentication to "no".
- Copy Public IP address of server and create A record in Linode domains.
- Install NGINX 18. sudo apt-get install nginx
- (To Update Later). Domain purchased on cloudflare. Created A record with public IP of Linode host. Turned off proxy on CF.
- Install Ansible on local machine. Created Ansible directory with 3 files hosts, deploy-demo.yml, and deploy.
- To test: ansible-playbook deploy-demo.yml -i hosts -K