Container 'old-static'

Ressourcen

0.25 GB RAM

1 Cores

4 GB HDD (root-fs)

System

interne IPs

10.2.0.8, fd00:10:2:0::8

Dienste

Alte Blogs als statische Webseiten (via NGINX)

Installation

Standard-Template mit Benutzern

NGINX

NGINX installieren

sudo apt-get install nginx

Konfigurationen erstellen

server {
listen 80;
listen [::]:80;
server_name old.bytespeicher.org;
root /var/www/old.bytespeicher.org/public_html;
index index.html;
location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
try_files $uri $uri/ =404;
}
}

server {
listen 80;
listen [::]:80;
server_name old.makerspace-erfurt.de;
root /var/www/old.makerspace-erfurt.de/public_html;
index index.html;
location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
try_files $uri $uri/ =404;
}
}

Konfiguration aktivieren

sudo ln -r -s /etc/nginx/sites-available/old.bytespeicher.org /etc/nginx/sites-enabled/old.bytespeicher.org

sudo ln -r -s /etc/nginx/sites-available/old.makerspace-erfurt.de /etc/nginx/sites-enabled/old.makerspace-erfurt.de

Datenverzeichnisse erstellen und Berechtigungen anpassen

sudo mkdir -p /var/www/old.{bytespeicher.org,makerspace-erfurt.de}/public_html

sudo chown www-data:www-data -R /var/www/old.{bytespeicher.org,makerspace-erfurt.de}

Dienst aktivieren und neustarten

sudo systemctl enable nginx.service

sudo systemctl restart nginx.service

Backup mit Borgmatic

Installation siehe mariadb

Konfiguration

...
location:
# List of source directories to backup (required). Globs and
# tildes are expanded.
source_directories:
- /etc
- /home
- /root
- /var/log
- /var/www
...