limesurvey: fix database access & cleanup postgres
This should work now!
This commit is contained in:
parent
6fa1f689f8
commit
9c1f412200
1 changed files with 3 additions and 18 deletions
|
@ -21,6 +21,7 @@
|
||||||
db = {
|
db = {
|
||||||
connectionString = "mysql:host=localhost;port=3306;dbname=limesurvey";
|
connectionString = "mysql:host=localhost;port=3306;dbname=limesurvey";
|
||||||
username = "limesurvey";
|
username = "limesurvey";
|
||||||
|
password = "";
|
||||||
tablePrefix = "limesurvey_";
|
tablePrefix = "limesurvey_";
|
||||||
charset = "utf8mb4";
|
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 = {
|
services.mysql = {
|
||||||
|
enable = true;
|
||||||
package = pkgs.mariadb;
|
package = pkgs.mariadb;
|
||||||
|
|
||||||
ensureDatabases = [ "limesurvey" ];
|
ensureDatabases = [ "limesurvey" ];
|
||||||
ensureUsers = [ {
|
ensureUsers = [ {
|
||||||
name = "limesurvey";
|
name = "limesurvey";
|
||||||
ensurePermissions = { "DATABASE limesurvey" = "ALL PRIVILEGES"; };
|
ensurePermissions = { "limesurvey.*" = "ALL PRIVILEGES"; };
|
||||||
} ];
|
} ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue