limesurvey: fix database access & cleanup postgres

This should work now!
feature/limesurvey
stuebinm 2021-03-25 14:18:59 +01:00
parent 6604867865
commit 0948f4e4fa
No known key found for this signature in database
GPG Key ID: 8FBE8AAD32FA12B7
1 changed files with 3 additions and 18 deletions

View File

@ -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"; };
} ];
};