Is there a possibility to allow several connectors...
# ktor
j
Is there a possibility to allow several connectors on the MainEngine-configs? As it is now, they only allows one https and one http connector. However we use a different port for our metrics so that we don't need to expose it outside Kubernetes. The way it's been solved now is a full-copy of the EngineMain-class and
commandLineEnvironment()
as we use almost all the default config there. Or differently asked; is there a particular reason why you don't support several connectors in the MainEngine/commandLineEnvironment? 🙂
m
It’s quite straightforward to start ktor yourself and configure it however you please, then you’re not tied to how someone else chose to structure config. One of the infinite ways of doing it: https://bitbucket.org/marshallpierce/ktor-demo/src/598c08c24888ec7d5ac20464095ef32b381c1538/src/main/kotlin/org/mpierce/ktordemo/KtorDemo.kt#lines-78