ma owncloud: re-enable secrets, add dummy secret
This commit is contained in:
parent
9598c99301
commit
dc60431d59
0
makefu/0tests/data/secrets/mysql_rootPassword
Normal file
0
makefu/0tests/data/secrets/mysql_rootPassword
Normal file
@ -171,27 +171,29 @@ in {
|
|||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
||||||
services.redis.enable = true;
|
services.redis.enable = true;
|
||||||
services.mysql = {
|
|
||||||
enable = false;
|
#services.mysql = {
|
||||||
package = pkgs.mariadb;
|
# enable = false;
|
||||||
rootPassword = config.krebs.secret.files.mysql_rootPassword.path;
|
# package = pkgs.mariadb;
|
||||||
initialDatabases = [
|
# rootPassword = config.krebs.secret.files.mysql_rootPassword.path;
|
||||||
# Or use writeText instead of literalExample?
|
# initialDatabases = [
|
||||||
#{ name = "nextcloud"; schema = literalExample "./nextcloud.sql"; }
|
# # Or use writeText instead of literalExample?
|
||||||
{
|
# #{ name = "nextcloud"; schema = literalExample "./nextcloud.sql"; }
|
||||||
name = "nextcloud";
|
# {
|
||||||
schema = pkgs.writeText "nextcloud.sql"
|
# name = "nextcloud";
|
||||||
''
|
# schema = pkgs.writeText "nextcloud.sql"
|
||||||
create user if not exists 'nextcloud'@'localhost' identified by 'password';
|
# ''
|
||||||
grant all privileges on nextcloud.* to 'nextcloud'@'localhost' identified by 'password';
|
# create user if not exists 'nextcloud'@'localhost' identified by 'password';
|
||||||
'';
|
# grant all privileges on nextcloud.* to 'nextcloud'@'localhost' identified by 'password';
|
||||||
}
|
# '';
|
||||||
];
|
# }
|
||||||
};
|
# ];
|
||||||
|
#};
|
||||||
|
|
||||||
# dataDir is only defined after mysql is enabled
|
# dataDir is only defined after mysql is enabled
|
||||||
# krebs.secret.files.mysql_rootPassword = {
|
#krebs.secret.files.mysql_rootPassword = {
|
||||||
# path = "${config.services.mysql.dataDir}/mysql_rootPassword";
|
# path = "${config.services.mysql.dataDir}/mysql_rootPassword";
|
||||||
# owner.name = "root";
|
# owner.name = "root";
|
||||||
# source-path = toString <secrets> + "/mysql_rootPassword";
|
# source-path = toString <secrets> + "/mysql_rootPassword";
|
||||||
# };
|
#};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user