diff --git a/blog/certbot-ssl.html b/blog/certbot-ssl.html new file mode 100644 index 0000000..382e941 --- /dev/null +++ b/blog/certbot-ssl.html @@ -0,0 +1,64 @@ + + + + + + + + + + + + + Set HTTPS for your website + + + +
+

Set SSL/HTTPS for your website

+
+ +
+
+ +
+
+

An SSL certificate is used to secure a domain, preventing people from seeing many things, including those entered into forms (username, password, etc.).

+

Install Certbot

+
sudo apt install python3-certbot
+

or

+
sudo apt install python3-certbot-nginx
+ +

Run Certbot

+
sudo certbot --nginx
+

or

+
sudo certbot --nginx -d 
+

I recommend the former command, as it will ask which domain you'd like to setup for, where the latter should be used if you know for certain the domain-name is configured in nginx

+

The first time you run certbot you'll need to enter an email (for alerts), and agree to T&Cs

+

Configure HTTPS

+ +

Auto renew

+

Certificates attained via Certbot are valid for 90 days, so to keep it up indefinitely we'll need to auto-renew before it expires

+

To do this we'll set up a cronjob to run on... . This crontab needs to be run by root, so we'll open the crontab with sudo.

+
sudo crontab -e
+

If it's your first time editing the crontab (as root), it'll ask for your editor of choice

+

When the crontab is open, add a line to the bottom with the following

+
0 0 * * * certbot --nginx renew
+

Exit and save, you'll be imformed the crontab has been changed, and every day the cronjob will auto renew SSL certificates that are due to expire in the next 30 days.

+
+
+ + + + + diff --git a/blog/get-a-domain-name.html b/blog/get-a-domain-name.html new file mode 100644 index 0000000..7d4e894 --- /dev/null +++ b/blog/get-a-domain-name.html @@ -0,0 +1,55 @@ + + + + + + + + + + + + + Get a domain name + + + +
+

Get a domain name

+
+ +
+
+ +
+
+

A domain name, as many will know is what people typing into their browser, e.g. google.com, facebook.com, etc.

+

The primary use for these is to have a memorable thing for users, instead of needing to type the IP address of the server

+ +

Choose a registrar

+

First thing is to choose a registrar (who you are leasing the domain from). You can search for "domain name registrars" and find who is cheapest. So long as they handle DNS (which all I've used do) you're good.

+

I'm currently using tsohost.com, as they're pretty cheap, and besides a few little issues, it works for me.

+ +

Choose a domain name

+

On the registrar's website there will be a section to purchase a domain. Upon clicking this you'll likely be greeted with a searchbar, search for whatever domain you'd like here, and they'll let you know if it's available, and what similar domains there are

+

Select the domain(s) you wish, and add it/them to your cart.

+ +

Purchase your domain name

+

Simply checkout, and make your way through the process

+
+
+ + + + + diff --git a/blog/guide-to-server-hosting.html b/blog/guide-to-server-hosting.html index c3303c9..72a5ecc 100644 --- a/blog/guide-to-server-hosting.html +++ b/blog/guide-to-server-hosting.html @@ -31,13 +31,14 @@

If you want to start getting into server hosting, system administration, or just want to get a basic minecraft/web server up for you and your friends, then welcome. We all start somewhere, and I would love if I could get your foot in the door.

-

This is a WIP, so I'll be adding to this guide whenever I get time, and will update it's readibility once it's 'complete'.

+

Notice

+

This is heavily a WIP, so I'll be adding to this guide whenever I get time, and will update it's readibility, and correct/add anything missing once it's 'complete'. If I didn't put it up in an unfinished state, it would never go live, so bear with.

Basic Server setup

Now you officially own, and have setup a server. Currently all you can do is SSH into it though, so let's get some services on there

@@ -45,11 +46,12 @@

Nginx Webserver

A great first service for any server is a website, even if it's just a little page to let people know you own the server/domain name

MariaDB Database

@@ -62,7 +64,7 @@

Backup your server!

-

Backups are super useful. If something breaks, or gets accidentally deleted you can always use a backup to get back it back

+

Backups are super useful. If something breaks, or gets accidentally deleted you can always use a backup to get it back