homelab/hosts/physique/hyponix/services/forgejo.nix
Lzebulon 5939aa8996
Some checks failed
/ check (push) Failing after 7s
format && add node monitoring
2025-11-03 23:25:59 +01:00

23 lines
433 B
Nix

{ config, ... }:
let
domain = "git.${config.networking.domain}";
in
{
services.forgejo = {
enable = true;
settings = {
server = {
DOMAIN = domain;
ROOT_URL = "https://${domain}";
};
};
};
services.caddy.virtualHosts."git.${config.networking.domain}" = {
extraConfig = ''
reverse_proxy localhost:${toString config.services.forgejo.settings.server.HTTP_PORT}
'';
};
}