Our wood pile is a good 50 ft. From the house.
My dad's pile is right up against the house, but, termites don't like the weather where he is, so that's not an issue.
You can help prevent termites from getting into your wood (and decrease drying time) by raising the stack off the ground.