This commit is contained in:
Filippo Berto 2025-09-19 10:57:27 +02:00
parent 102490fcc4
commit ec54a1e980
Signed by: bertof
GPG key ID: 9DBF7E6A1D2CE9ED
2 changed files with 26 additions and 0 deletions

25
nixos/forgejo.nix Normal file
View file

@ -0,0 +1,25 @@
{
services.forgejo = {
enable = true;
database.type = "postgres";
lfs.enable = true;
settings = {
server = {
DOMAIN = "git.bertof.net";
ROOT_URL = "https://git.bertof.net";
HTTP_PORT = 3000;
DISABLE_SSH = true;
};
session = {
COOKIE_SECURE = true;
};
service = {
# DISABLE_REGISTRATION = true;
};
actions = {
ENABLED = true;
DEFAULT_ACTIONS_URL = "github";
};
};
};
}