initial commit

This commit is contained in:
Lzebulon 2025-08-06 00:18:58 +02:00
commit 95085a0d24
Signed by: lzebulon
GPG key ID: D6CDAB8050CBBE7D
16 changed files with 294 additions and 0 deletions

View file

@ -0,0 +1,22 @@
{config, ...}:
let
domain = "git.${config.networking.domain}";
in
{
services.forgejo = {
enable = true;
settings = {
server = {
DOMAIN = domain;
};
};
};
services.caddy.virtualHosts."git.${config.networking.domain}" = {
extraConfig = ''
reverse_proxy localhost:${toString config.services.forgejo.settings.server.HTTP_PORT}
'';
};
}