From 65476a0d0941fac15b90aaba9ab44120f9dc6e11 Mon Sep 17 00:00:00 2001 From: dm Date: Thu, 7 Jan 2021 15:41:37 +0100 Subject: [PATCH] remove pg dependency, add docs --- README.md | 20 ++++++++++++++++++++ package.json | 1 - 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a70e100..0816c80 100644 --- a/README.md +++ b/README.md @@ -64,6 +64,26 @@ For advanced media conversion: By default, media files are uploaded to the ```storage``` folder. The database is stored in ```database.sqlite``` by default. +# Other databases (Not officially supported) + +## Postgres + +Add the [pg](https://www.npmjs.com/package/pg) module and change the config/default.json to + +``` +"storage_dialect": "postgres", +``` + +Adapt the other values as needed + +``` +"storage_host": "localhost", +"storage_database": "spacedeck", +"storage_username": "username", +"storage_password": "password", +``` + + # Run with Docker - configure `config/default.json` diff --git a/package.json b/package.json index 5e44408..d53987b 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,6 @@ "node-phantom-simple": "2.2.4", "node-server-screenshot": "^0.2.1", "nodemailer": "^4.6.7", - "pg": "^8.5.1", "phantomjs-prebuilt": "^2.1.16", "read-chunk": "^2.1.0", "request": "^2.88.0",