Privatebin: Backup data.
This commit is contained in:
parent
dc099cf567
commit
2db909a0e3
|
@ -20,6 +20,7 @@ let
|
|||
(mkBind "ovpn" "/var/lib/ovpn")
|
||||
(mkBind "paperless" "/var/lib/paperless")
|
||||
(mkBind "postgres" "/var/lib/postgresql")
|
||||
(mkBind "privatebin" "/var/lib/privatebin")
|
||||
(mkBind "rabbitmq" "/var/lib/rabbitmq")
|
||||
(mkBind "sieve" "/var/sieve")
|
||||
(mkBind "terraria" "/var/lib/terraria")
|
||||
|
|
|
@ -121,13 +121,13 @@ in
|
|||
];
|
||||
plugins = [ "managesieve" ];
|
||||
extraConfig = util.trimTabs ''
|
||||
$config['smtp_server'] = "localhost:25";
|
||||
$config['smtp_auth_type'] = null;
|
||||
$config['smtp_user'] = "";
|
||||
$config['smtp_pass'] = "";
|
||||
# $config['smtp_user'] = "%u";
|
||||
# $config['smtp_pass'] = "%p";
|
||||
'';
|
||||
$config['smtp_server'] = "localhost:25";
|
||||
$config['smtp_auth_type'] = null;
|
||||
$config['smtp_user'] = "";
|
||||
$config['smtp_pass'] = "";
|
||||
# $config['smtp_user'] = "%u";
|
||||
# $config['smtp_pass'] = "%p";
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -139,20 +139,20 @@ in
|
|||
};
|
||||
path = [ pkgs.dovecot ];
|
||||
script = util.trimTabs ''
|
||||
doveadm expunge -A mailbox Junk SENTBEFORE 7d
|
||||
doveadm expunge -A mailbox Trash SENTBEFORE 30d
|
||||
doveadm expunge -u trash@voronind.com mailbox Inbox SENTBEFORE 30d
|
||||
doveadm purge -A
|
||||
'';
|
||||
doveadm expunge -A mailbox Junk SENTBEFORE 7d
|
||||
doveadm expunge -A mailbox Trash SENTBEFORE 30d
|
||||
doveadm expunge -u trash@voronind.com mailbox Inbox SENTBEFORE 30d
|
||||
doveadm purge -A
|
||||
'';
|
||||
};
|
||||
|
||||
timers.autoexpunge = {
|
||||
wantedBy = [ "timers.target" ];
|
||||
timerConfig = {
|
||||
OnCalendar = "daily";
|
||||
Persistent = true;
|
||||
Unit = "autoexpunge.service";
|
||||
};
|
||||
wantedBy = [ "timers.target" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{ ... }: {
|
||||
{ ... }:
|
||||
{
|
||||
"paste.voronind.com" = {
|
||||
extraConfig = ''
|
||||
listen 443 ssl;
|
||||
|
|
Loading…
Reference in a new issue