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

View file

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