2023-05-11 11:54:42 +01:00
|
|
|
{ ... }:
|
|
|
|
{
|
|
|
|
imports = [ ./traefik.nix ];
|
|
|
|
services.gitea.enable = true;
|
|
|
|
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
|
|
|
services.traefik.dynamicConfigOptions.http = {
|
2023-05-15 07:51:06 +01:00
|
|
|
routers.gitea = { rule = "Host(`git.xenia.me.uk`)"; service = "gitea-websecure"; tls = { certResolver = "default"; }; };
|
2023-05-11 11:54:42 +01:00
|
|
|
services.gitea-websecure.loadBalancer.servers = [{ url = "http://localhost:3000"; }];
|
|
|
|
};
|
|
|
|
}
|