feat(forjego): prepare for enabling mailer

This commit is contained in:
buffet 2024-05-02 12:50:47 +02:00
parent 6204338c82
commit df5c9fb1b3

View file

@ -6,8 +6,21 @@ in {
enable = true; enable = true;
package = pkgs.unstable.forgejo; package = pkgs.unstable.forgejo;
settings = { settings = {
DEFAULT = { DEFAULT.APP_NAME = "buffet's kitchen";
APP_NAME = "buffet's kitchen"; admin.SEND_NOTIFICATION_EMAIL_ON_NEW_USER = true;
cron.ENABLED = true;
federation.ENABLED = true;
mailer = {
ENABLED = false;
PROTOCOL = "sendmail";
FROM = "buffet's kitchen <do-not-reply@buffets.kitchen>";
SENDMAIL_PATH = "${pkgs.system-sendmail}/bin/sendmail";
};
repository = {
ENABLE_PUSH_CREATE_USER = true;
ENABLE_PUSH_CREATE_ORG = true;
}; };
server = { server = {
@ -16,9 +29,9 @@ in {
HTTP_PORT = port; HTTP_PORT = port;
}; };
repository = { service = {
ENABLE_PUSH_CREATE_USER = true; REGISTER_MANUAL_CONFIRM = true;
ENABLE_PUSH_CREATE_ORG = true; ENABLE_NOTIFY_MAIL = true;
}; };
"markup.asciidoc" = { "markup.asciidoc" = {
@ -36,10 +49,6 @@ in {
RENDER_COMMAND = ''"timeout 30s ${pkgs.pandoc}/bin/pandoc +RTS -M512M -RTS -f rst"''; RENDER_COMMAND = ''"timeout 30s ${pkgs.pandoc}/bin/pandoc +RTS -M512M -RTS -f rst"'';
IS_INPUT_FILE = false; IS_INPUT_FILE = false;
}; };
service.REGISTER_MANUAL_CONFIRM = true;
cron.ENABLED = true;
federation.ENABLED = true;
}; };
}; };