Is there a way to replenish a keep's health?

Solution 1:

At least for the Allied Base, the base starts recovering once EVERY enemy in the keep dies.

So if there is a single mook left, it won't heal back up.