Skip to content

Commit

Permalink
feat(etna): add forgejo
Browse files Browse the repository at this point in the history
  • Loading branch information
uku3lig committed May 18, 2024
1 parent aa8c49c commit 402144e
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
1 change: 1 addition & 0 deletions systems/etna/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ in {
./reposilite.nix
./uku.nix
./vaultwarden.nix
./forgejo.nix
];

age.secrets = mkSecrets {
Expand Down
42 changes: 42 additions & 0 deletions systems/etna/forgejo.nix
Original file line number Diff line number Diff line change
@@ -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";
};
};
};
}

0 comments on commit 402144e

Please sign in to comment.