Edit some Forgejo settings
This commit is contained in:
parent
78f9e0f501
commit
391979bbb5
2 changed files with 11 additions and 2 deletions
|
|
@ -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
|
||||
];
|
||||
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue