Fixing mailer issues
This commit is contained in:
parent
c594f5fb51
commit
9b96f1e1e3
2 changed files with 15 additions and 4 deletions
|
|
@ -12,6 +12,18 @@ in
|
||||||
settings.AcceptEnv = "GIT_PROTOCOL";
|
settings.AcceptEnv = "GIT_PROTOCOL";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Fixing mailing issues
|
||||||
|
systemd.services.forgejo.serviceConfig = {
|
||||||
|
RestrictAddressFamilies = [
|
||||||
|
"AF_LOCAL"
|
||||||
|
"AF_NETLINK"
|
||||||
|
];
|
||||||
|
ReadWritePaths = [ "/var/spool/mail/" "/var/lib/postfix/queue/maildrop/" ];
|
||||||
|
NoNewPrivileges = lib.mkForce false;
|
||||||
|
PrivateUsers = lib.mkForce false;
|
||||||
|
SystemCallFilter = lib.mkForce [];
|
||||||
|
};
|
||||||
|
|
||||||
services.forgejo = {
|
services.forgejo = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
|
|
@ -52,9 +64,8 @@ in
|
||||||
mailer = {
|
mailer = {
|
||||||
ENABLED = true;
|
ENABLED = true;
|
||||||
PROTOCOL = "sendmail";
|
PROTOCOL = "sendmail";
|
||||||
# SMTP_ADDR = "taf.lyes.eu";
|
FROM = "root-biggoron@lyes.eu";
|
||||||
# FROM = "noreply@${srv.DOMAIN}";
|
SENDMAIL_PATH = "${config.security.wrapperDir}/sendmail";
|
||||||
# USER = "noreply@${srv.DOMAIN}";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# oauth2_client = {
|
# oauth2_client = {
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@
|
||||||
boot.swraid = {
|
boot.swraid = {
|
||||||
enable = true;
|
enable = true;
|
||||||
mdadmConf = ''
|
mdadmConf = ''
|
||||||
MAILADDR root@lyes.eu
|
MAILADDR root-mdadm@lyes.eu
|
||||||
DEVICE partitions
|
DEVICE partitions
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue