elodina / dropwizard-kafka-http

Apache Kafka HTTP Endpoint for producing and consuming messages from topics
http://www.elodina.net
Apache License 2.0
154 stars 45 forks source link

How to implement a HTTPs Server? #17

Open rangwea opened 7 years ago

rangwea commented 7 years ago

Hi.

I need a HTTPS implement, now I touch a HttpsServerFactory extends AbstractServerFactory. such as:

   @JsonTypeName("https")
   public class HttpsServerFactory extends AbstractServerFactory {
         @Valid
         @NotNull
         private List<ConnectorFactory> applicationConnectors = Lists.newArrayList(new ConnectorFactory[]
       {HttpsConnectorFactory.application()});

       @Valid
       @NotNull
       private List<ConnectorFactory> adminConnectors = Lists.newArrayList(new ConnectorFactory[]
       {HttpsConnectorFactory.admin()});

       ...
   }

then, I modify the kafka-http.yml file , adding the configuration such as:

server: 
     "type": "https"

but, I still got the DefaultServerFactory

Who can help me?

Thanks!

ranjeet-floyd commented 6 years ago

May be you can check HTTPS config https://www.dropwizard.io/1.3.5/docs/manual/configuration.html#man-configuration .