The best setup I've found with exactly these assumptions is HP MicroServer with Ubuntu and 4 TB HDD in ZFS mirror array. MicroServer has 4 trays so I had a small SDD to boot Ubuntu from it and 2 HDD at this moment, but there's space for a 3rd one if I feel paranoid. And ZFS has deduplication, compression, encryption.