From 69d01dbc3258a4ea3dcb82dfd624784e4190f0c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Sun, 27 Aug 2023 22:46:11 +0200 Subject: [PATCH] postgresql --- conf/credentials.json | 9 +++++---- manifest.toml | 5 ++++- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/conf/credentials.json b/conf/credentials.json index 64ef848..11f1dba 100644 --- a/conf/credentials.json +++ b/conf/credentials.json @@ -20,11 +20,12 @@ * https://www.npmjs.com/package/ueberdb2 */ - "dbType" : "redis", + "dbType" : "postgres", "dbSettings" : { - "host" : "127.0.0.1", - "port" : 6379, - "database": "__REDIS_DB__" + "user" : "__DB_USER__", + "host" : "localhost", + "password": "__DB_PWD__", + "database": "__DB_NAME__", }, /* diff --git a/manifest.toml b/manifest.toml index 2b096cd..f6199a7 100644 --- a/manifest.toml +++ b/manifest.toml @@ -79,7 +79,7 @@ ram.runtime = "50M" admin.auth_header = false [resources.apt] - packages = "mariadb-server" + packages = "postgresql" packages_from_raw_bash = """ if [[ "$export" == "libreoffice" ]] @@ -90,4 +90,7 @@ ram.runtime = "50M" echo "abiword" fi """ + + [resources.database] + type = "postgresql" \ No newline at end of file