How to create a new smart proxy on Debian

Right now i have an main Foreman server on Debian 12.
What i want now is to have an extra server. I want that server to get al the files and everything from the main Foreman server. I thought that it was easy to setup a extra server, and connect it with smart proxy but the thing right now is that i do not find the right documentation. I do not know if there is any documentation.

So my main question is how do i setup a smart proxy because i cannot find any documentation.

I am running version 3.14 atm

foreman-installer
–no-enable-foreman
–no-enable-foreman-cli
–enable-puppet
–puppet-server-ca=false
–puppet-server-foreman-url=https://foreman.main.com
–enable-foreman-proxy
–foreman-proxy-puppetca=false
–foreman-proxy-tftp=false
–no-enable-foreman-plugin-puppet \
–foreman-proxy-foreman-base-url=https://foreman.extra.com
–foreman-proxy-trusted-hosts=foreman.main.com
–foreman-proxy-oauth-consumer-key=xxx
–foreman-proxy-oauth-consumer-secret=xxx

i did this but no success