diff --git a/Running-Mastodon/Production-guide.md b/Running-Mastodon/Production-guide.md index 54bf17b9..a023020f 100644 --- a/Running-Mastodon/Production-guide.md +++ b/Running-Mastodon/Production-guide.md @@ -166,6 +166,17 @@ In the prompt: CREATE USER mastodon CREATEDB; \q +Under Ubuntu 16.04, you will need to explicitly enable ident authentication so that local users can connect to the database without a password: + + sudo sed -i '/^local.*postgres.*peer$/a host all all 127.0.0.1/32 ident' /etc/postgresql/9.?/main/pg_hba.conf + +and install an ident daemon, which does not come installed by default: + + sudo apt-get install pidentd + sudo systemctl enable pidentd + sudo systemctl start pidentd + sudo systemctl restart postgresql + ## Rbenv It is recommended to use rbenv (exclusively from the `mastodon` user) to install the desired Ruby version. Follow the guides to [install rbenv][1] and [rbenv-build][2] (I recommend checking the [prerequisites][3] for your system on the rbenv-build project and installing them beforehand, obviously outside the unprivileged `mastodon` user)