summaryrefslogtreecommitdiff
path: root/guides/cloud/vps.org
diff options
context:
space:
mode:
Diffstat (limited to 'guides/cloud/vps.org')
-rw-r--r--guides/cloud/vps.org8
1 files changed, 8 insertions, 0 deletions
diff --git a/guides/cloud/vps.org b/guides/cloud/vps.org
index 537f567..71fda14 100644
--- a/guides/cloud/vps.org
+++ b/guides/cloud/vps.org
@@ -100,6 +100,13 @@ sudo systemctl restart fail2ban
Check how these rules fare against real bot searches with
~fail2ban-regex /var/log/nginx/access.log
/etc/fail2ban/filter.d/nginx-botsearch.local~.
+*** HTTPS
+#+begin_src sh
+sudo apt install certbot python3-certbot-nginx
+sudo certbot --nginx -d $FQDN www.$FQDN
+sudo systemctl reload nginx
+#+end_src
+
** Git server
*** SSH access
#+begin_src sh
@@ -142,6 +149,7 @@ css=/cgit.css
logo=/cgit.png
virtual-root=/
+# Change these to https:// after setting up certbot:
clone-prefix=http://git.$FQDN
clone-url=http://git.$FQDN/$CGIT_REPO_URL