is there a way to block using standard non-ssl por...
# ktor
d
is there a way to block using standard non-ssl ports in ktor using embeddedServer?
d
What do you mean by block?
Shouldn’t be no difference between standard ports and non standard ones
d
as in by default it listens to http, but I only want to allow https traffic coming in
applicationEngineEnvironment
works for you?
d
I will have to parse all configs myself then, rather than using commandLineEnvironment()
that's not a big problem, just wanted to check if I can opt out of using standard ports
d
I’d suggest you to not use
embeddedServer
but a plain DevelopmentEngine and define stuff in the application.conf
with embeddedServer you can specify a port and a host to bind
d
I cannot push that to production tho
d
but if you use the
applicationEngineEnvironment
function there is no default connectors I think
why cannot push that to production?
d
actually while we on that, what's the purpose of DevelopmentEngine if I cannot push it to prod?
I thought it's only for Development
d
nope, that’s misleading
d
no optimized and all that
d
it is the same code
d
hmmmm, that's very misleading then 🙂
d
yep, agree
d
oh my, now some parts of the docs make sense
thank you, will use that
👍 1