In that system's space area or on a planet you control in that system.
This is the rule for production by a unit in space, rather than a dock on a planet.
LRR v2.0 (base game / Prophecy of Kings); specific card abilities may override the general rule.