From f1c0dea8368ec5e97fa2aec5ef00d4b9cdd9b658 Mon Sep 17 00:00:00 2001 From: Francis Date: Thu, 2 Aug 2018 18:10:12 -0400 Subject: [PATCH] Update production guide for Ubuntu 18.04 (#608) * Update production guide for Ubuntu 18.04 Also bump nodejs to 8.x * letsencrypt tool is now certbot in 18.04 --- Running-Mastodon/Production-guide.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Running-Mastodon/Production-guide.md b/Running-Mastodon/Production-guide.md index 8bc1b1d4..441e20a7 100644 --- a/Running-Mastodon/Production-guide.md +++ b/Running-Mastodon/Production-guide.md @@ -18,7 +18,7 @@ We use example.com to represent a domain or sub-domain. Example.com should be re You will need the following for this guide: -- A server running [Ubuntu Server 16.04](https://www.ubuntu.com/server). +- A server running [Ubuntu Server 18.04](https://www.ubuntu.com/server). - Root access to the server. - A domain or sub-domain to use for the instance. @@ -90,7 +90,7 @@ Now you need to install [Yarn](https://yarnpkg.com/en/) plus some more software. - Other -dev packages, g++ - these are needed for the compilation of Ruby using ruby-build. ```sh -apt -y install imagemagick ffmpeg libpq-dev libxml2-dev libxslt1-dev file git-core g++ libprotobuf-dev protobuf-compiler pkg-config nodejs gcc autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm3 libgdbm-dev nginx redis-server redis-tools postgresql postgresql-contrib letsencrypt yarn libidn11-dev libicu-dev +apt -y install imagemagick ffmpeg libpq-dev libxml2-dev libxslt1-dev file git-core g++ libprotobuf-dev protobuf-compiler pkg-config nodejs gcc autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm5 libgdbm-dev nginx redis-server redis-tools postgresql postgresql-contrib certbot yarn libidn11-dev libicu-dev ``` ### Dependencies That Need To Be Added As A Non-Root User @@ -322,15 +322,15 @@ We will be creating the certificate twice, once with TLS SNI validation in stand [nginx](http://nginx.org) and the [Let's Encrypt](https://letsencrypt.org/) tool works. ```sh -letsencrypt certonly --standalone -d example.com +certbot certonly --standalone -d example.com ``` After that successfully completes, we will use the webroot method. This requires [nginx](http://nginx.org) to be running: ```sh systemctl start nginx -# The letsencrypt tool will ask if you want issue a new cert, please choose that option -letsencrypt certonly --webroot -d example.com -w /home/mastodon/live/public/ +# The certbot tool will ask if you want issue a new cert, please choose that option +certbot certonly --webroot -d example.com -w /home/mastodon/live/public/ ``` ### Automated Renewal Of Let's Encrypt Certificate @@ -349,7 +349,7 @@ Copy and paste this script into that file: ```sh #!/usr/bin/env bash -letsencrypt renew +certbot renew systemctl reload nginx ```