nixos/server/gitea.nix

11 lines
360 B
Nix
Raw Normal View History

{ ... }:
{
imports = [ ./traefik.nix ];
services.gitea.enable = true;
networking.firewall.allowedTCPPorts = [ 80 443 ];
services.traefik.dynamicConfigOptions.http = {
routers.gitea = { rule = "Host(`git.xenia.me.uk`)"; service = "gitea-websecure"; };
services.gitea-websecure.loadBalancer.servers = [{ url = "http://localhost:3000"; }];
};
}