I would like one Ktor application to serve multiple sites. (One site = one domain) I would also like to be able to add and remove sites without restarting the Ktor server.(This is the main question that I cannot solve)
I found such functionality in the documentation, but I don't understand if I can dynamically add new ports?

Please tell me if you have any ideas how I can solve my problem?