tl;dr: stop using the cloud; local-host (see <http://old.reddit.com/r/datahoarder>)----
I was recently gifted a MacPro6,1 (2013-2016 RIP) [<$], perhaps among Apple's most elegant [computer?] product designs, ever.
It has replaced three other machines, and its "obsolete" 6-core Xeon is more than capable of being a fantastic local fileserver (and upgradable!). It's still able to run a ©20twenty-something operating system (2021? iirc), so even the latest macOS releases can screencast into and fileserve from it. It's native and not cobbled-together mess [0].
[<$] I have no official connection with them, but have been a very happy customer of <http://eshop.macsales.com> (et.al.) for decades – they sell this model for a few hundred dollars, with a short-term warranty (to determine stability) – don't get the D700s, they reputation is flakeyAF – if I hadn't been gifted this phenomenal & "obsolete" machine, I would now purchase one
[0] e.g. native USB3 support (via Thunderbolt2/3 adapter); no OCLP hackintoshing (neat_but_cobbled.gif)
----
Of course having spinning HDDs isn't possible inside of this "trashcan" MacPro, but adding an external 4-bay Terramaster (hotswappable) has given me the 24TB fileserver I've always dreamed of... which allowed me to finally retire my MacPro5,1 [•] entirely from the macintosh ecosystem (now a Linux cryptominer/node, only when heating is otherwise on).
[•] The MacPro6,1 with an external hard disk is infinitely more usable than a MacPro5,1 – doesn't require any OCLP and is very very stable/interactive. In my usagecase, I have used four networked spinning platters to replace eight (and removed two other machines entirely from network). This is approximately a 250W continuous load removed from a residential environment, equivalent to your refrigerator running (all the time)