Configure public host URL in P2P

I’m still new and going through all the steps to set up some nodes. I’m just trying to set up my relay system before moving on to the block producer config.

My question is somewhat simple: how do I publish the public URL people should use to access my relay? Looking at the P2P topology.json example from the preprod network its not immediately clear to me how to set it up. I thought it might be something to do with the advertise flag but I can’t find any documentation for it. I want to advertise my public URL but I don’t actually want to use it as a peer; all my nodes run in docker and resolve eachother via the internal docker service name which I do not want to publish. Couldn’t find anything that looked promising in the other config files or command line options either; I feel a little bit like I’m fundamentally missing something.

And because I’m still a n00b who is learning, can someone confirm for me, the equivalent of this in the non-P2P world is to use the CNODE_HOSTNAME field in topologyUpdater.sh which is effectively a third party system?

For now, the only way to advertise your node is to register it as a relay of a stake pool (in the stake pool registration certificate). The p2p nodes connect to the registered relays.
The gossip protocol was not yet developed in p2p. With it, you will not need to register your relays to be discovered by other nodes.

Thanks for the reply, I was wondering if it was part of the pool registration process. It felt like it should be technically possible to be a passive non-pool participant in p2p, but I can understand if this is fairly early days.

I am still curious to learn a bit more about the topology.json format used in p2p but I guess docs aren’t really ready…

Thanks again for the clarification

This is the “documentation”: cardano-node/understanding-config-files.md at master · input-output-hk/cardano-node · GitHub