title: How to route all traffic through https?
body: <p>Service Fabric allows you to specify what endpoints it will listen on, and each service can expose different protocols like so:</p>
  
  <pre><code>            protected override IEnumerable&lt;ServiceInstanceListener&gt; CreateServiceInstanceListeners()
          {
              return new[]
              {
                  new ServiceInstanceListener(serviceContext =&gt; new OwinCommunicationListener(Startup.ConfigureApp,
                      serviceContext, ServiceEventSource.Current, "ServiceEndpointHttps")),
  
                   //you can add another one here like so:
  new ServiceInstanceListener(serviceContext =&gt; new OwinCommunicationListener(Startup.ConfigureApp,
                      serviceContext, ServiceEventSource.Current, "ServiceEndpointUnSecured"))
              };
          }
  </code></pre>
  
  <p>In the ServiceManifest.xml file, we can specify these two endpoints:</p>
  
  <pre><code>&lt;Endpoints&gt;
          &lt;Endpoint Protocol="http" Name="ServiceEndpointUnsecured" Type="Input" /&gt;
    &lt;Endpoint Protocol="https" Name="ServiceEndpointHttps" Type="Input" /&gt;
  &lt;/Endpoints&gt;
  </code></pre>
  
  <p>We have 100 microservices, and we want to have <strong>only 1, central location</strong> where we configure whether the services are running through http or https. </p>
  
  <p><strong>Is it possible to change this setup so that we would have only 1 location that would be responsible for routing http or https for ALL services?</strong></p>