From 06fb9a5fcdebc76c3b30a2cc63554cbaf14b22da Mon Sep 17 00:00:00 2001 From: RealStickman Date: Wed, 14 Oct 2020 21:42:26 +0200 Subject: [PATCH] Renamed directory. Added nginx setup --- .../Dokumente/nginx-setup/nginx-setup.md | 34 +++++++++++++++++++ .../debian-backports.md | 0 .../debian-fixterminal.md | 0 .../debian-jellyfin.md | 0 .../debian-nextcloud.md | 0 .../debian-ssh.md | 0 6 files changed, 34 insertions(+) create mode 100644 arch-config/Dokumente/nginx-setup/nginx-setup.md rename arch-config/Dokumente/{Server-setups => server-setups}/debian-backports.md (100%) rename arch-config/Dokumente/{Server-setups => server-setups}/debian-fixterminal.md (100%) rename arch-config/Dokumente/{Server-setups => server-setups}/debian-jellyfin.md (100%) rename arch-config/Dokumente/{Server-setups => server-setups}/debian-nextcloud.md (100%) rename arch-config/Dokumente/{Server-setups => server-setups}/debian-ssh.md (100%) diff --git a/arch-config/Dokumente/nginx-setup/nginx-setup.md b/arch-config/Dokumente/nginx-setup/nginx-setup.md new file mode 100644 index 00000000..278bbed0 --- /dev/null +++ b/arch-config/Dokumente/nginx-setup/nginx-setup.md @@ -0,0 +1,34 @@ +# Nginx Setup + +[Original video this guide is based on.](https://youtu.be/OWAqilIVNgE) + +## Walkthrough + +Install programs +``` +apt install nginx certbot python-certbot-nginx +``` + +Available site configs can be found under /etc/nginx/sites-available/ + +To activate a config symbolic link it to /etc/nginx/sites-enabled/ +``` +ln -s /etc/nginx/sites-available/[config] /etc/nginx/sites-enabled/ +``` + +Create directory in /var/www/[site] and create an index.html file for basic functionality. + +To set up https run +``` +certbot --nginx +``` + +Automatic cert renewal +``` +crontab -e +``` + +In crontab enter the following line +``` +1 1 1 * * certbot renew +``` diff --git a/arch-config/Dokumente/Server-setups/debian-backports.md b/arch-config/Dokumente/server-setups/debian-backports.md similarity index 100% rename from arch-config/Dokumente/Server-setups/debian-backports.md rename to arch-config/Dokumente/server-setups/debian-backports.md diff --git a/arch-config/Dokumente/Server-setups/debian-fixterminal.md b/arch-config/Dokumente/server-setups/debian-fixterminal.md similarity index 100% rename from arch-config/Dokumente/Server-setups/debian-fixterminal.md rename to arch-config/Dokumente/server-setups/debian-fixterminal.md diff --git a/arch-config/Dokumente/Server-setups/debian-jellyfin.md b/arch-config/Dokumente/server-setups/debian-jellyfin.md similarity index 100% rename from arch-config/Dokumente/Server-setups/debian-jellyfin.md rename to arch-config/Dokumente/server-setups/debian-jellyfin.md diff --git a/arch-config/Dokumente/Server-setups/debian-nextcloud.md b/arch-config/Dokumente/server-setups/debian-nextcloud.md similarity index 100% rename from arch-config/Dokumente/Server-setups/debian-nextcloud.md rename to arch-config/Dokumente/server-setups/debian-nextcloud.md diff --git a/arch-config/Dokumente/Server-setups/debian-ssh.md b/arch-config/Dokumente/server-setups/debian-ssh.md similarity index 100% rename from arch-config/Dokumente/Server-setups/debian-ssh.md rename to arch-config/Dokumente/server-setups/debian-ssh.md