Add gitea

This commit is contained in:
2023-03-21 21:28:11 +00:00
parent 6b40745b29
commit ef80e0555e
3 changed files with 26 additions and 1 deletions

View File

@@ -83,6 +83,12 @@
'';
};
"git.broccoli.town" = {
extraConfig = ''
reverse_proxy localhost:3030
'';
};
"http://bigding:8384" = {
extraConfig = ''
reverse_proxy localhost:8387

View File

@@ -4,9 +4,10 @@
./caddy
./dungflix
./fail2ban
./gitea
./golink
./monitoring
./synapse
./golink
];
};

18
modules/gitea/default.nix Normal file
View File

@@ -0,0 +1,18 @@
{ config, pkgs, ... }:
{
services.gitea = {
enable = true;
appName = "The Broccoli Patch"; # Give the site a name
database = {
type = "sqlite3";
};
httpPort = 3030;
domain = "git.broccoli.town";
rootUrl = "https://git.broccoli.town/";
settings = {
service = {
DISABLE_REGISTRATION = true;
};
};
};
}