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