feat(etna): add forgejo

This commit is contained in:
uku 2024-05-18 23:03:42 +02:00
parent aa8c49c5bd
commit 402144e422
Signed by: uku
SSH key fingerprint: SHA256:4P0aN6M8ajKukNi6aPOaX0LacanGYtlfjmN+m/sHY/o
2 changed files with 43 additions and 0 deletions

View file

@ -23,6 +23,7 @@ in {
./reposilite.nix
./uku.nix
./vaultwarden.nix
./forgejo.nix
];
age.secrets = mkSecrets {

42
systems/etna/forgejo.nix Normal file
View file

@ -0,0 +1,42 @@
_: {
cfTunnels."git.uku3lig.net" = "http://localhost:3000";
services.forgejo = {
enable = true;
database = {
type = "postgres";
createDatabase = true;
};
settings = {
DEFAULT.APP_NAME = "uku's forge";
server = {
DISABLE_SSH = true;
ROOT_URL = "https://git.uku3lig.net";
};
service = {
ALLOW_ONLY_EXTERNAL_REGISTRATION = true;
# TODO enable turnstile once it gets fixed
# see codeberg:forgejo/forgejo#3832
ENABLE_CAPTCHA = true;
};
oauth2 = {
# providers are configured in the admin panel
ENABLED = true;
};
"ui.meta" = {
AUTHOR = "uku's forge";
DESCRIPTION = "the place where literally nothing gets done";
};
"repository.signing" = {
DEFAULT_TRUST_MODEL = "committer";
};
};
};
}