forked from lukas/nixos-config
38 lines
753 B
Nix
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/"; }
|
|
];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|
|
|