1
0
Fork 0
forked from lukas/nixos-config
nixos-config/hosts/blunix/localServices/traefik-forgejo.nix
2026-07-28 01:41:00 +02:00

38 lines
753 B
Nix

{config, ...}:
{
services.traefik.dynamicConfigOptions = {
http = {
middlewares = {
large-bodies = {
buffering = {
maxRequestBodyBytes = 536870912;
};
};
};
routers = {
forgejo = {
rule = "Host(`git.${config.domain}`)";
tls = {
certResolver = "cloudflare";
};
service = "forgejo";
middlewares = [ "large-bodies" ];
entryPoints = [ "websecure" ];
#entryPoints = [ "web-internal" ];
};
};
services = {
forgejo = {
loadBalancer = {
servers = [
{ url = "http://${config.tailnetIPs.pinix}:3000/"; }
];
};
};
};
};
};
}