feat : Add of secret for roundcube and vaultwarden
This commit is contained in:
parent
a59e409a49
commit
2f5c8be389
18 changed files with 116 additions and 51 deletions
|
|
@ -2,35 +2,29 @@
|
|||
|
||||
lib.mkIf config.module.roundcube.enable {
|
||||
age.secrets = {
|
||||
smtp_server = {
|
||||
file = ../secrets/smtp_server.age;
|
||||
owner = "roundcube";
|
||||
group = "roundcube";
|
||||
mode = "0400";
|
||||
YfDrVBDJcVoYNZeJ = {
|
||||
file = ../secrets/cache/YfDrVBDJcVoYNZeJ;
|
||||
};
|
||||
imap_server = {
|
||||
file = ../secrets/imap_server.age;
|
||||
owner = "roundcube";
|
||||
group = "roundcube";
|
||||
mode = "0400";
|
||||
LtnxWKwZdDIxAKzp = {
|
||||
file = ../secrets/cache/LtnxWKwZdDIxAKzp;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
services.roundcube = {
|
||||
enable = true;
|
||||
hostName = "mail.${config.module.domain}";
|
||||
hostName = "${config.module.roundcube.subdomain}.${config.module.domain}";
|
||||
|
||||
plugins = [ "multiple_accounts" ];
|
||||
configureNginx = false;
|
||||
|
||||
extraConfig = ''
|
||||
$config['default_host'] = trim(
|
||||
file_get_contents('${config.age.secrets.imap_server.path}')
|
||||
file_get_contents('${config.age.secrets.LtnxWKwZdDIxAKzp.path}')
|
||||
);
|
||||
$config['default_port'] = 993;
|
||||
$config['smtp_server'] = trim(
|
||||
file_get_contents('${config.age.secrets.smtp_server.path}')
|
||||
file_get_contents('${config.age.secrets.YfDrVBDJcVoYNZeJ.path}')
|
||||
);
|
||||
$config['smtp_port'] = 465;
|
||||
$config['smtp_user'] = '%u';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue