first commit

This commit is contained in:
Stuce 2025-11-13 16:01:47 +01:00
commit e46461326d
10 changed files with 632 additions and 0 deletions

20
forgejo.nix Normal file
View file

@ -0,0 +1,20 @@
{
services.forgejo = {
enable = true;
settings = {
server = { ROOT_URL = "https://git.stuce.ch"; };
openid = {
ENABLE_OPENID_SIGNIN = false;
ENABLE_OPENID_SIGNUP = true;
WHITELISTED_URIS = "auth.stuce.ch";
};
service = {
DISABLE_REGISTRATION = false;
ALLOW_ONLY_EXTERNAL_REGISTRATION = true;
SHOW_REGISTRATION_BUTTON = false;
};
session = { COOKIE_SECURE = true; };
};
};
}