Hey guys, I have one question which option you wi...
# server
p
Hey guys, I have one question which option you will suggest me to use for SSL: 1. With Ktor serving SSL directly (https://ktor.io/docs/ssl.html#ktor) 2. With Docker and Nginx as reverse proxy(https://ktor.io/docs/ssl.html#docker) Currently I am a bit confused what directly should I use.... thanks for any advices in advance 😄 P.S: Probably I will use the first option, but maybe someone here already met with that and already did the decision which can help me to chose the proper way😄
d
When your Ktor server is accessed directly you should use the first option, but when an external access accesses a proxy server, which will route to your server, you should use the 2nd option.
a
terminate SSL at your Load balancer - which in this case would be nginx - i.e. option 2 it will allow simpler code in your application - easy certificate management - and less cpu utilisation in the app
p
@asad.awadia yer thanks man for advice, currently reading about that 😁