diff options
| author | Kévin Le Gouguec <kevin.legouguec@gmail.com> | 2021-08-08 14:30:27 +0200 |
|---|---|---|
| committer | Kévin Le Gouguec <kevin.legouguec@gmail.com> | 2021-08-08 14:30:27 +0200 |
| commit | 93f3023a3175d3f20d27a9fc74af2c3c48f50fd8 (patch) | |
| tree | feb4689d6e7e355d1efc7d82ea3373a60acb2a56 /guides | |
| parent | e016666d64cb48ce3f7c6b1960b7e26ba62a8ace (diff) | |
| download | memory-leaks-93f3023a3175d3f20d27a9fc74af2c3c48f50fd8.tar.xz | |
Note how to generate HTTPS certificates
Diffstat (limited to 'guides')
| -rw-r--r-- | guides/cloud/vps.org | 8 |
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 |
