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