Navier–Stokes–Fourier System with General Boundary Conditions