Commit 6a9f5f8c authored by John Morahan's avatar John Morahan

Update installation.md to use certbot --nginx instead of --webroot

parent 920ecccc
...@@ -150,7 +150,7 @@ apt install -y \ ...@@ -150,7 +150,7 @@ apt install -y \
bison build-essential libssl-dev libyaml-dev libreadline6-dev \ bison build-essential libssl-dev libyaml-dev libreadline6-dev \
zlib1g-dev libncurses5-dev libffi-dev libgdbm5 libgdbm-dev \ zlib1g-dev libncurses5-dev libffi-dev libgdbm5 libgdbm-dev \
nginx redis-server redis-tools postgresql postgresql-contrib \ nginx redis-server redis-tools postgresql postgresql-contrib \
certbot yarn libidn11-dev libicu-dev libjemalloc-dev certbot python-certbot-nginx yarn libidn11-dev libicu-dev libjemalloc-dev
``` ```
### Installing Ruby ### Installing Ruby
...@@ -300,16 +300,10 @@ systemctl reload nginx ...@@ -300,16 +300,10 @@ systemctl reload nginx
We'll use Let's Encrypt to get a free SSL certificate: We'll use Let's Encrypt to get a free SSL certificate:
```sh ```sh
certbot certonly --webroot -d example.com -w /home/mastodon/live/public/ certbot --nginx -d example.com
``` ```
You can now edit `/etc/nginx/sites-available/mastodon` to uncomment and adjust the `ssl_certificate` and `ssl_certificate_key` lines. This will obtain the certificate, automatically update `/etc/nginx/sites-available/mastodon` to use the new certificate, and reload nginx for the changes to take effect.
Then, reload nginx for the changes to take effect:
```sh
systemctl reload nginx
```
At this point you should be able to visit your domain in the browser and see the elephant hitting the computer screen error page. This is because we haven't started the Mastodon process yet. At this point you should be able to visit your domain in the browser and see the elephant hitting the computer screen error page. This is because we haven't started the Mastodon process yet.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment