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