2024-10-07 11:42:34 -04:00
|
|
|
{ outputs, ... }: {
|
|
|
|
imports = [
|
|
|
|
./nginx
|
|
|
|
];
|
|
|
|
|
2024-09-20 02:30:50 -04:00
|
|
|
services = {
|
|
|
|
forgejo = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
|
|
|
server = {
|
|
|
|
DOMAIN = "git.${outputs.secrets.jimDomain}";
|
|
|
|
ROOT_URL = "https://git.${outputs.secrets.jimDomain}:443";
|
|
|
|
HTTP_PORT = 3110;
|
|
|
|
SSH_PORT = 2299;
|
|
|
|
START_SSH_SERVER = true;
|
|
|
|
};
|
2024-09-20 12:37:22 -04:00
|
|
|
ui = {
|
|
|
|
DEFAULT_THEME = "forgejo-dark";
|
|
|
|
};
|
2024-09-20 02:30:50 -04:00
|
|
|
mailer = {
|
|
|
|
ENABLED = true;
|
|
|
|
SMTP_ADDR = "mx.${outputs.secrets.jimDomain}";
|
|
|
|
FROM = "Jimbo's Git <noreply@${outputs.secrets.jimDomain}>";
|
|
|
|
USER = "noreply@${outputs.secrets.jimDomain}";
|
|
|
|
PASSWD = outputs.secrets.noreplyPassword;
|
|
|
|
PROTOCOL = "smtps";
|
|
|
|
};
|
|
|
|
service = {
|
|
|
|
REGISTER_EMAIL_CONFIRM = true;
|
2024-09-20 02:38:46 -04:00
|
|
|
DISABLE_REGISTRATION = true;
|
2024-09-20 02:30:50 -04:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
# Allow Forgejo's SSH to work
|
|
|
|
networking.firewall.allowedTCPPorts = [ 2299 ];
|
|
|
|
}
|