Open glitchedmob opened 1 year ago
From in person discussion: document precise steps for the setup of this hosting.
Highly Relevant: host.docker.internal.
Server setup:
I select SSH key authentication method instead of password authentication method.
I have digital ocean automatically enable access with my main ssh key.
I decline automatic disk backups.
The droplet is created.
I open a terminal and ssh in as the root user.
I update the known package versions with apt-get update
I update Ubuntu packages with apt-get upgrade
with the following complications:
I create a non-root user with adduser ethan
I give the user sudo access with usermod -aG sudo ethan
I enable ssh access as this user by doing the following:
su ethan
~/.ssh/authorized_keys
I set up the port firewall by doing the following:
sudo ufw default deny incoming
sudo ufw default allow outgoing
sudo ufw allow ssh
sudo ufw allow http
sudo ufw allow https
sudo ufw enable
I set up github access from my droplet by doing the following:
ssh-keygen -t ed25519 -C "ethan@ethanzitting.com"
I enter the public key into my github.
I make sure password access to the server is disabled by ensuring that “PasswordAuthentication” is set to no in /etc/ssh/sshd_config. It already is.
A few months ago our Heroku account was shut down. We need to look at putting this site on a new host. Here's ideally how it would work