nix-config/systems/common/services/forgejo.nix
2026-01-31 23:30:39 -04:00

31 lines
492 B
Nix
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
lib,
pkgs,
...
}:
{
services.forgejo = {
enable = true;
};
services.caddy = {
enable = true;
virtualHosts = {
"forgejo.sysrq.ca" = {
extraConfig = ''
encode gzip
# Automatically handle HTTPS via Lets Encrypt
# Caddy will request and renew certs for immich.sysrq.ca
reverse_proxy http://192.168.0.60:3000 {
}
'';
};
};
};
networking.firewall.allowedTCPPorts = [ 3000 ];
}