limesurvey: use mariadb instead of postgres
this should allow us to more easily migrate from our current limesurvey instance on libocedrus.
This commit is contained in:
parent
1245d08ae1
commit
e3387ed2f5
1 changed files with 23 additions and 9 deletions
|
@ -19,9 +19,10 @@
|
||||||
name = "LimeSurvey";
|
name = "LimeSurvey";
|
||||||
components = {
|
components = {
|
||||||
db = {
|
db = {
|
||||||
connectionString = "pgsql:dbname=limesurvey;host=localhost;port=5432;user=limesurvey";
|
connectionString = "mysql:host=localhost;port=3306;dbname=limesurvey";
|
||||||
username = "limesurvey";
|
username = "limesurvey";
|
||||||
tablePrefix = "limesurvey_";
|
tablePrefix = "limesurvey_";
|
||||||
|
charset = "utf8mb4";
|
||||||
};
|
};
|
||||||
assetManager.basePath = "/var/lib/limesurvey/tmp/assets";
|
assetManager.basePath = "/var/lib/limesurvey/tmp/assets";
|
||||||
urlManager = {
|
urlManager = {
|
||||||
|
@ -48,20 +49,33 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
services.postgresql = {
|
# services.postgresql = {
|
||||||
enable = true;
|
# 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 = {
|
||||||
|
package = pkgs.mariadb;
|
||||||
|
|
||||||
ensureDatabases = [ "limesurvey" ];
|
ensureDatabases = [ "limesurvey" ];
|
||||||
ensureUsers = [ {
|
ensureUsers = [ {
|
||||||
name = "limesurvey";
|
name = "limesurvey";
|
||||||
ensurePermissions = { "DATABASE limesurvey" = "ALL PRIVILEGES"; };
|
ensurePermissions = { "DATABASE limesurvey" = "ALL PRIVILEGES"; };
|
||||||
} ];
|
} ];
|
||||||
|
|
||||||
authentication = lib.mkForce ''
|
|
||||||
# Generated file; do not edit!
|
|
||||||
local all all trust
|
|
||||||
host limesurvey limesurvey ::1/128 trust
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [ 80 ];
|
networking.firewall.allowedTCPPorts = [ 80 ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue