forgejo: shorten the server settings

This commit is contained in:
Tigor Hutasuhut 2024-06-13 20:30:03 +07:00
parent e335d6e331
commit f029840713

View file

@ -18,11 +18,11 @@ in
services.forgejo = {
enable = true;
settings = {
server = {
server = rec {
PROTOCOL = "http+unix";
DOMAIN = "git.tigor.web.id";
HTTP_PORT = 443;
ROOT_URL = "https://${config.services.forgejo.settings.server.DOMAIN}:${toString config.services.forgejo.settings.server.HTTP_PORT}";
ROOT_URL = "https://${DOMAIN}:${toString HTTP_PORT}";
};
service = {
DISABLE_REGISTRATION = true;