diff --git a/docs/docs/installation/debian_based_en.md b/docs/docs/installation/debian_based_en.md index 6a0f332ec..f19929b89 100644 --- a/docs/docs/installation/debian_based_en.md +++ b/docs/docs/installation/debian_based_en.md @@ -155,23 +155,6 @@ If you want to open your newly installed instance to the world, you should run n sudo apt install nginx ``` -* Setup your SSL cert, using your method of choice or certbot. If using certbot, first install it: - -```shell -sudo apt install certbot -``` - -and then set it up: - -```shell -sudo mkdir -p /var/lib/letsencrypt/ -sudo certbot certonly --email -d --standalone -``` - -If that doesn’t work, make sure, that nginx is not already running. If it still doesn’t work, try setting up nginx first (change ssl “on” to “off” and try again). - ---- - * Copy the example nginx configuration and activate it: ```shell @@ -186,12 +169,21 @@ sudo ln -s /etc/nginx/sites-available/akkoma.nginx /etc/nginx/sites-enabled/akko sudo systemctl enable --now nginx.service ``` -If you need to renew the certificate in the future, uncomment the relevant location block in the nginx config and run: +* Setup your SSL cert, using your method of choice or certbot. If using certbot, first install it: ```shell -sudo certbot certonly --email -d --webroot -w /var/lib/letsencrypt/ +sudo apt install certbot python3-certbot-nginx ``` +and then set it up: + +```shell +sudo mkdir -p /var/lib/letsencrypt/ +sudo certbot --email -d -d --nginx +``` + +Certificate renewal should be handled automatically by Certbot from now on. + #### Other webserver/proxies You can find example configurations for them in `/opt/akkoma/installation/`.