From 9c1f41220087ffbdb7e584651b9fd6125c1067cd Mon Sep 17 00:00:00 2001 From: stuebinm Date: Thu, 25 Mar 2021 14:18:59 +0100 Subject: [PATCH] limesurvey: fix database access & cleanup postgres This should work now! --- hosts/hainich/services/limesurvey.nix | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/hosts/hainich/services/limesurvey.nix b/hosts/hainich/services/limesurvey.nix index 12a051f..2f84628 100644 --- a/hosts/hainich/services/limesurvey.nix +++ b/hosts/hainich/services/limesurvey.nix @@ -21,6 +21,7 @@ db = { connectionString = "mysql:host=localhost;port=3306;dbname=limesurvey"; username = "limesurvey"; + password = ""; tablePrefix = "limesurvey_"; charset = "utf8mb4"; }; @@ -48,30 +49,14 @@ }); }; - - # services.postgresql = { - # enable = true; - # ensureDatabases = [ "limesurvey" ]; - # ensureUsers = [ { - # name = "limesurvey"; - # ensurePermissions = { "DATABASE limesurvey" = "ALL PRIVILEGES"; }; - # } ]; - - # authentication = lib.mkForce '' - # # Generated file; do not edit! - # local all all trust - # host limesurvey limesurvey ::1/128 trust - # ''; - # }; - # - services.mysql = { + enable = true; package = pkgs.mariadb; ensureDatabases = [ "limesurvey" ]; ensureUsers = [ { name = "limesurvey"; - ensurePermissions = { "DATABASE limesurvey" = "ALL PRIVILEGES"; }; + ensurePermissions = { "limesurvey.*" = "ALL PRIVILEGES"; }; } ]; };