Browse Source

some minor changes to css + preliminary ordering of articles

pull/2/head
lidia pereira 5 years ago
parent
commit
99da64c963
  1. 4
      content/fundamentals/hardware.md
  2. 4
      content/fundamentals/intro.md
  3. 4
      content/fundamentals/manifesto.md
  4. 4
      content/fundamentals/nas.md
  5. 5
      content/fundamentals/port_forwarding.md
  6. 4
      content/fundamentals/ssh.md
  7. 39
      content/fundamentals/webserver.md
  8. 6
      themes/homebrewtheme/static/css/main.css

4
content/fundamentals/hardware.md

@ -1,9 +1,11 @@
Title: Considerations for server hardware
Date: 2019-7-10
Tags: hardware, sbc,
Slug: choosing-a-homebrew-server
url: choosing-a-homebrew-server
save_as: choosing-a-homebrew-server.html
Summary: What makes a suitable homebrew server and where to get it?
Category: fundamentals
slug: 002
[TOC]

4
content/fundamentals/intro.md

@ -1,10 +1,12 @@
Title: Introduction
Date: 2019-06-17
Slug: fundamentals-intro
url: fundamentals-intro
save_as: fundamentals-intro.html
Description: why you want to get in to homeserving
Summary: Introduction to homebrewserver.club fundamentals
Status: published
Category: fundamentals
slug: 001
This series is a starting point for people looking to host their own on-line services from home. A good place to start is by reading the [homebrewserver.club principles]({filename}manifesto.md) on to understand why we make the choices we do. Then have a look at the [hardware guide](hwguide) or [setting up a server behind your home router.]({filename}portforwarding.md)

4
content/fundamentals/manifesto.md

@ -1,9 +1,11 @@
Date: 2019-06-17
Title: The homebrewserver.club principles
Slug: fundamentals-manifesto
url: fundamentals-manifesto
save_as: fundamentals-manifesto.html
Summary: The homebrewserver.club principles
Status: published
Category: fundamentals
slug: 006
## THE HOMEBREWSERVER.CLUB:

4
content/fundamentals/nas.md

@ -1,9 +1,11 @@
Title: Networked Backups over VPN
Date: 2018-7-25
Tags: NAS, diy, vpn
Slug: network-backups-over-vpn
url: network-backups-over-vpn
save_as: network-backups-over-vpn.html
Summary: How to set up a spare olimex board as a networked backup disk
Category: fundamentals
slug: 007
#Introduction

5
content/fundamentals/port_forwarding.md

@ -1,12 +1,13 @@
Title: Port Forwarding configuration for your home router
Date: 2019-01-14
Tags: port forwarding, router, introduction, lan, wan
Slug: fundamentals-port-forwarding
url: fundamentals-port-forwarding
save_as: fundamentals-port-forwarding.html
Summary: How to make your homebrew server reachable over the internet using your home router.
Author: hbsc & friends
Image: images/port_forwarding.svg
Status: published
slug: 005
# UNDER CONSTRUCTION

4
content/fundamentals/ssh.md

@ -1,12 +1,14 @@
Title: Demystifying SSH
Date: 2019-06-17
Tags: ssh
Slug: demystifying-ssh
url: demystifying-ssh
save_as: demystifying-ssh.html
Description: Setting up and understanding remote terminal connections to your server using SSH for fun and not-for-profit
Summary: Setting up and understanding remote terminal connections to your server using SSH for fun and not-for-profit
Author: decentral1se
Status: published
Category: fundamentals
slug: 003
## Introduction

39
content/fundamentals/webserver.md

@ -1,27 +1,27 @@
Title: Setting up a web server
Date: 2019-01-14
Date: 2019-08-14
Category: fundamentals
Tags: server, router, introduction, lan, wan
Slug: fundamentals-webserver-website
url: fundamentals-webserver-website
save_as: fundamentals-webserver-website
Summary: Installing a web server on your homebrew server
Author: hbsc & friends
Status: published
slug: 004
TODO:
* add good dns registry reference
* certificate renewal certbot
[TOC]
##Introduction
Ever wanted to host your own website from the comfort of your own house? Ever wondered how to achieve this? Search no further! This guide will help you with the installation and configuration of web server software, which is what allows a computer to start handling HTTP requests and serve web content in response.
Besides helping you with the installation, this guide will help you getting the right certificates, configuring your server and publishing your homebrewserved website.
Besides helping you with the installation, this guide will help you getting the right certificates, configuring your server and publishing your homebrew served website.
## Some background knowledge.
## Some background knowledge
So first off, what is the web, what is a web site and what is a web server?
First off: what is the web, what is a web site and what is a web server?
The web is the single most known part of the internet. Because of that, it often happens that 'the web' and 'the internet' become conflated. Therefor it often becomes a bit hazy to state what the difference is between the internet and the web. Generally speaking 'the web' is only the part of the internet that we interact with with a web browser. More technically speaking, the web is the part of the internet that runs on port 80 and port 443 and that uses the HTTP and HTTPS protocols.
The web is the single most known part of the internet. Because of that, it often happens that 'the web' and 'the internet' become conflated. Therefore, it often becomes a bit hazy to state what the difference is between the internet and the web. Generally speaking 'the web' is only the part of the internet that we interact with with a web browser. More technically speaking, the web is the part of the internet that runs on port 80 and port 443 and that uses the HTTP and HTTPS protocols.
Websites are text documents that are formatted through HTML, CSS and JS. These three technologies tell the webbrowser what the structure of the page is, how it should be laid out and what kind of interactions are possible. Websites are transmitted using Hyper Text Transfer Protocol, which is why we usually type them like so `http://homebrewserver.club`.
@ -34,7 +34,7 @@ So in essence the web is a network of webservers which runs on top of the intern
- A spare computer.
- A basic understanding of the command line.
- An [ssh server and client](demystifying-ssh.html) installed
- A registered domain name
- A [registered domain name](https://www.pcworld.com/article/241722/how-to-register-your-own-domain-name.html)
- Have an available power socket next to your router.
- An ethernet cable to connect your server to the router.
@ -265,11 +265,28 @@ If the required ssl_module is not listed, run:
$ sudo a2enmod ssl
```
### Certificate renewal
Your certificates expire after a period of time. You can, however, automate renewal by adding a [cron job](https://www.ostechnix.com/a-beginners-guide-to-cron-jobs/) that schedules when the specific renewal command should be run.
Start by running:
```bash
sudo crontab -e
```
Add the following:
```bash
5 55 0 * 5 /usr/bin/certbot renew
```
This means the certificates will be renewed every week on Friday at 05:55. You can of course edit these times according to your preferences!
Save your changes and exit the editor.
Time to restart Apache and load all of these changes!
## index.html
At this point, when typing https://mydomain.org into your browser, you're greeted with a page that looks a little something like this:
At this point, when typing https://mydomain.org into your browser, you should be greeted with a page that looks a little something like this:
![Default apache on debian index.html page](http://assets.digitalocean.com/how-to-install-lamp-debian-9/small_apache_default_debian9.png)

6
themes/homebrewtheme/static/css/main.css

@ -294,6 +294,10 @@ blockquote {
margin-bottom:0px;
}
.category-intro {
width:85%;
}
.divider {
font-size:12px;
width:100%;
@ -317,8 +321,6 @@ blockquote {
}
.footnote{
font-size:14px;
margin:auto;

Loading…
Cancel
Save