Compare commits
2 commits
4e840ce3b3
...
891fa83f01
Author | SHA1 | Date | |
---|---|---|---|
chayleaf | 891fa83f01 | ||
chayleaf | 8948db4dac |
|
@ -228,14 +228,22 @@ in {
|
||||||
type = "postgres";
|
type = "postgres";
|
||||||
};
|
};
|
||||||
settings = {
|
settings = {
|
||||||
|
federation.ENABLED = true;
|
||||||
|
"git.timeout" = {
|
||||||
|
DEFAULT = 6000;
|
||||||
|
MIGRATE = 6000;
|
||||||
|
MIRROR = 6000;
|
||||||
|
GC = 120;
|
||||||
|
};
|
||||||
mailer = {
|
mailer = {
|
||||||
ENABLED = true;
|
ENABLED = true;
|
||||||
FROM = "Forgejo <noreply@${cfg.domainName}>";
|
FROM = "Forgejo <noreply@${cfg.domainName}>";
|
||||||
MAILER_TYPE = "smtp";
|
PROTOCOL = "smtp";
|
||||||
HOST = "mail.${cfg.domainName}:587";
|
SMTP_ADDR = "mail.${cfg.domainName}";
|
||||||
|
SMTP_PORT = 587;
|
||||||
USER = "noreply@${cfg.domainName}";
|
USER = "noreply@${cfg.domainName}";
|
||||||
PASSWD = cfg.unhashedNoreplyPassword;
|
PASSWD = cfg.unhashedNoreplyPassword;
|
||||||
SKIP_VERIFY = true;
|
FORCE_TRUST_SERVER_CERT = true;
|
||||||
};
|
};
|
||||||
session = {
|
session = {
|
||||||
COOKIE_SECURE = true;
|
COOKIE_SECURE = true;
|
||||||
|
|
|
@ -100,13 +100,16 @@ in {
|
||||||
name = "hook${toString i}";
|
name = "hook${toString i}";
|
||||||
}) cfg.hooks);
|
}) cfg.hooks);
|
||||||
});
|
});
|
||||||
environment.CERTSPOTTER_STATE_DIR = "/var/lib/certspotter";
|
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
User = "certspotter";
|
User = "certspotter";
|
||||||
Group = "certspotter";
|
Group = "certspotter";
|
||||||
WorkingDirectory = "/var/lib/certspotter";
|
StateDirectory = "certspotter";
|
||||||
ExecStart = "${pkgs.certspotter}/bin/certspotter -sendmail ${cfg.sendmailPath} ${lib.escapeShellArgs cfg.extraFlags}";
|
|
||||||
};
|
};
|
||||||
|
script = ''
|
||||||
|
export CERTSPOTTER_STATE_DIR="$STATE_DIR"
|
||||||
|
cd "$CERTSPOTTER_STATE_DIR"
|
||||||
|
${pkgs.certspotter}/bin/certspotter -sendmail ${cfg.sendmailPath} ${lib.escapeShellArgs cfg.extraFlags}
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue