NixOS-Config/modules/system/services/server/forgejo/default.nix

35 lines
863 B
Nix
Raw Permalink Normal View History

{ config, ... }:
2024-10-09 03:36:08 -04:00
{
imports = [ ./nginx ];
2024-11-13 09:43:47 -05:00
services.forgejo = {
enable = config.system.server.enable;
settings = {
server = {
DOMAIN = "git.${config.domains.jim1}";
ROOT_URL = "https://git.${config.domains.jim1}:443";
HTTP_PORT = 3110;
SSH_PORT = 2299;
START_SSH_SERVER = true;
};
ui = {
DEFAULT_THEME = "forgejo-dark";
};
mailer = {
ENABLED = true;
SMTP_ADDR = "mx.${config.domains.jim1}";
FROM = "Jimbo's Git <noreply@${config.domains.jim1}>";
USER = "noreply@${config.domains.jim1}";
PASSWD = config.secrets.noreplyPassword;
PROTOCOL = "smtps";
};
service = {
REGISTER_EMAIL_CONFIRM = true;
DISABLE_REGISTRATION = true;
2024-09-20 02:30:50 -04:00
};
};
};
networking.firewall.allowedTCPPorts = [ 2299 ];
}