No description
  • Go 41.3%
  • Nix 36.2%
  • Python 12.5%
  • Rust 1.7%
  • CSS 1.3%
  • Other 7%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Doridian cf86c4e267
All checks were successful
/ deploy (islandfox.foxden.network) (push) Successful in 53s
/ deploy (bengalfox.foxden.network) (push) Successful in 1m2s
/ deploy (icefox.foxden.network) (push) Successful in 1m2s
Lint / lint (push) Successful in 1m3s
Fix 413 on large uploads behind oauth2-proxy (#352)
Uploading large NZBs/torrents to nzbget and deluge returned 413. bengalfox's nginx logs showed:

```
client intended to send too large body: 8589404 bytes, ... subrequest: "/oauth2/auth"
auth request unexpected status: 413
```

`client_max_body_size 0` was only set inside the proxied `location /`. The `auth_request` subrequest to `/oauth2/auth` and the error-page subrequest check the body size against their own locations, which still had the 1m default. This PR sets it to 0 at the `http` level in the shared nginx config, so every service using `services.http.make` inherits it.

Flood sets its own 100 MB body limit, which is plenty for torrent files.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01DMCZKToFhKhxagys1w4wJy
Reviewed-on: #352
2026-11-06 22:50:24 -08:00
.forgejo/workflows lint: run ruff over every Python file in the repo (#309) 2026-10-28 22:29:23 -07:00
dashboard grafana, dashboard: follow ntpi's ts2phc/ptp4l label changes (#287) 2026-10-28 13:22:40 -07:00
mikrotik mikrotik: clamp TCP MSS on traffic entering WireGuard tunnels (#340) 2026-11-03 18:08:21 -08:00
nix Fix 413 on large uploads behind oauth2-proxy (#352) 2026-11-06 22:50:24 -08:00
terraform Give Bambu X1 static lease (#348) 2026-11-05 16:36:17 -08:00
vpn chore(deps): update module github.com/go-jose/go-jose/v4 to v4.1.9 (#346) 2026-11-05 13:02:02 -08:00
.gitignore just in case 2026-01-14 20:04:24 -08:00
.sops.yaml dashboard: build the container and run it on the routers (#253) 2026-10-26 10:52:52 -07:00
AGENTS.md mikrotik: manage the routers' base config so a reset router can be restored (#270) 2026-10-27 17:20:17 -07:00
CLAUDE.md chore: add CLAUDE.md pointing to AGENTS.md (#195) 2026-10-11 09:50:11 -07:00
LICENSE move 2025-10-16 11:14:46 -07:00
README.md mikrotik: manage the routers' base config so a reset router can be restored (#270) 2026-10-27 17:20:17 -07:00
renovate-local.json vpn: let renovate maintain the Go vendor hash (#192) 2026-10-09 14:52:35 -07:00
renovate.json chore(reposyncer): update repo baseline (#140) 2026-07-29 07:56:39 -07:00
update-all.sh Update all packages and dont autorun configure on update-all (#341) 2026-11-03 18:16:45 -08:00

FoxDen core

This is the monorepo to control the FoxDen homelab pretty much in its entirety.

router, router-backup and redfox can be rebuilt from a reset by mikrotik/configure.py, except for users, passwords, certificates and WireGuard keys and peers (the VPN portal manages the wg-vpn peers itself). The addressing plan (VLANs, VRRP addresses, router addresses) lives in nix/modules/lib/routers.nix. We still keep regular backups of those devices around.

Machines

BengalFox

  • Locator: Rack; 2U, Supermicro chassis
  • OS: NixOS
  • CPU: Dual Xeon E5-2690v4
  • RAM: 256GB, DDR4-ECC, 2400 MT/s
  • Storage:
    • nix: XFS: RAID1: 2 * 2TB NVMe SSD
    • zhdd: ZFS:
      • RAIDZ2: 8 * 18 TB SATA3 HDD
      • metadata special RAID1: 2 * 1TB SAS3 SSD (partition)
    • zssd: XFS: RAID1: 2 * 3TB SAS3 SSD (partition)
  • Network: 25GbE (SFP28; Mellanox ConnectX-6 Dx)

IslandFox

  • Locator: Rack; Miniforum UM980 Pro
  • OS: NixOS
  • CPU: AMD Ryzen 9 PRO 8945HS
  • RAM: 96GB, DDR5, 5600 MT/s
  • Storage:
    • nix: XFS: RAID1: 2 * 2TB NVMe SSS
  • Network: 25GbE (SFP28; Mellanox ConnectX-4 Lx USB4)

IceFox

  • Locator: OVH
  • OS: NixOS
  • CPU: Xeon D-2141I
  • RAM: 32GB, DDR4, 2133 MT/s
  • Storage:
    • nix: xfs: RAID1: 2 * 480GB SATA3 SSD
    • ztank: ZFS:
      • MIRROR: 2 * 8 TB SATA3 HDD
  • Network: 1GbE (no traffic limit)

RedFox

  • Locator: Vultr
  • OS: MikroTik RouterOS
  • CPU: 1 vCPU "Intel high performance"
  • RAM: 2 GB
  • Storage: vdisk 50 GB NVMe SSD
  • Network: >= 1GbE (max 3 TB traffic)

Router

  • Locator: Rack; 1U, white MikroTik CCR2004
  • OS: MikroTik RouterOS
  • CPU: 4 core ARM64 "AL32400"
  • RAM: 4 GB
  • Storage: 128 MB NAND
  • Network:
    • LAN: 25 GbE (SFP28)
    • WAN: 10 GbE (SFP+)

Router Backup

  • Locator: Rack; 1U, black MikroTik RB5009
  • OS: MikroTik RouterOS
  • CPU: 4 core ARM64 "88F7040"
  • RAM: 1 GB
  • Storage: 1 GB NAND
  • Network:
    • LAN: 10 GbE (SFP+)
    • WAN: 2.5 GbE (RJ45)

TODO: Not-yet automated update cycles

  • Every GitHub release artifact download where upstream does not have a digest (likely big files, currently carvera-controller and njs/acme.js)
  • ZFS Linux kernel lag-behind
  • Kanidm version in nix
  • Anything RouterOS

Notes

  • zfs must be mountpoint=legacy
  • DO NOT use /var/run, always use /run, or the entire OS explodes