Edit some Forgejo settings

This commit is contained in:
pazpi 2025-10-18 15:43:30 +02:00
parent 78f9e0f501
commit 391979bbb5
2 changed files with 11 additions and 2 deletions

View file

@ -27,6 +27,7 @@ in
settings = {
service = {
DISABLE_REGISTRATION = true;
LANDING_PAGE = "explore";
};
mailer = {
ENABLED = true;
@ -40,6 +41,9 @@ in
USERNAME = "openid";
ACCOUNT_LINKING = "auto";
};
repository = {
DEFAULT_BRANCH = "master";
};
};
};

View file

@ -7,6 +7,7 @@
let
cfg = config.my.services.forgejo;
httpPort = 3000;
sshPort = 2222;
in
{
@ -81,13 +82,17 @@ in
server = {
DOMAIN = "git.${cfg.proxy.domain}";
ROOT_URL = "https://git.${cfg.proxy.domain}";
START_SSH_SERVER = true;
SSH_PORT = sshPort;
HTTP_PORT = httpPort;
SSH_PORT = 2222;
};
} cfg.settings;
};
networking.firewall.allowedTCPPorts = [ httpPort ];
networking.firewall.allowedTCPPorts = [
httpPort
sshPort
];
})