From 809d78e7c7bff1a59d85adffcd049273915bfecd Mon Sep 17 00:00:00 2001
From: mirabilos <t.glaser@tarent.de>
Date: Tue, 3 Sep 2019 20:25:49 +0200
Subject: [PATCH] Quick PostgreSQL setting overview.

---
 docs/admin/02_psql.txt | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)
 create mode 100644 docs/admin/02_psql.txt

diff --git a/docs/admin/02_psql.txt b/docs/admin/02_psql.txt
new file mode 100644
index 000000000..8af64680b
--- /dev/null
+++ b/docs/admin/02_psql.txt
@@ -0,0 +1,29 @@
+Instaling BiscuIT with PostgreSQL backend
+─────────────────────────────────────────
+
+• Install PostgreSQL, for example with:
+
+	sudo apt install postgresql-contrib
+
+• Create a database role with login permissions:
+
+	sudo -u postgres createuser -D -P -R -S biscuit
+    <username>─────────────────────────────────────┘
+
+  This step asks interactively for the password to set.
+
+• Create a database belonging to the new user:
+
+	sudo -u postgres createdb -E UTF-8 -O biscuit -T template0 -l C.UTF-8 biscuit
+    <username>───────────────────────────────────┘                               │
+    <databasename>───────────────────────────────────────────────────────────────┘
+
+• Fill in the configuration under /etc/biscuit/*.toml:
+
+	[default.database]
+	engine = "django.db.backends.postgresql"
+	name = "biscuit"
+	username = "biscuit"
+	password = "biscuit"
+
+• Run the migrations.
-- 
GitLab