On boundary conditions for Yang-Mills fields in spatially bounded domains