Compare commits
No commits in common. "891fa83f014efe3d18c39d9e9a76fc2f3ae000cb" and "4e840ce3b3f9d96744218fbe53ad856d215f16ea" have entirely different histories.
891fa83f01
...
4e840ce3b3
|
@ -228,22 +228,14 @@ 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}>";
|
||||||
PROTOCOL = "smtp";
|
MAILER_TYPE = "smtp";
|
||||||
SMTP_ADDR = "mail.${cfg.domainName}";
|
HOST = "mail.${cfg.domainName}:587";
|
||||||
SMTP_PORT = 587;
|
|
||||||
USER = "noreply@${cfg.domainName}";
|
USER = "noreply@${cfg.domainName}";
|
||||||
PASSWD = cfg.unhashedNoreplyPassword;
|
PASSWD = cfg.unhashedNoreplyPassword;
|
||||||
FORCE_TRUST_SERVER_CERT = true;
|
SKIP_VERIFY = true;
|
||||||
};
|
};
|
||||||
session = {
|
session = {
|
||||||
COOKIE_SECURE = true;
|
COOKIE_SECURE = true;
|
||||||
|
|
|
@ -100,16 +100,13 @@ 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";
|
||||||
StateDirectory = "certspotter";
|
WorkingDirectory = "/var/lib/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