Use theforeman.foreman.content_upload module to upload your packages to a repository. The src/file is uploaded from the remote/target machine, not implicitly from your control node. It can be run on localhost and uploaded from your control node if that is preferred.