Open-SGF / motherhood-reclaimed-website

3 stars 5 forks source link

Hosting Overhaul #119

Open glitchedmob opened 1 year ago

glitchedmob commented 1 year ago

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

ethanzitting commented 1 year ago

From in person discussion: document precise steps for the setup of this hosting.

ethanzitting commented 1 year ago
ezmidwestern commented 1 year ago

Possibly relevant: https://stackoverflow.com/questions/27879713/is-it-ok-to-run-docker-from-inside-docker#:~:text=It's%20OK%20to%20run%20Docker,not%20be%20a%20viable%20alternative.

ethanzitting commented 1 year ago

Highly Relevant: host.docker.internal.

ethanzitting commented 1 year ago
ethanzitting commented 1 year ago

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:

I set up the port firewall by doing the following:

I set up github access from my droplet by doing the following:

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.