You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by zh...@apache.org on 2020/05/07 16:12:44 UTC

[pulsar] branch jiazhai-standalone-tls created (now 5cea44e)

This is an automated email from the ASF dual-hosted git repository.

zhaijia pushed a change to branch jiazhai-standalone-tls
in repository https://gitbox.apache.org/repos/asf/pulsar.git.


      at 5cea44e  In standalone webServiceUrlTls should be https

This branch includes the following new commits:

     new 5cea44e  In standalone webServiceUrlTls should be https

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[pulsar] 01/01: In standalone webServiceUrlTls should be https

Posted by zh...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

zhaijia pushed a commit to branch jiazhai-standalone-tls
in repository https://gitbox.apache.org/repos/asf/pulsar.git

commit 5cea44e6594546b2bf451684291c9653a49a74d4
Author: Jia Zhai <zh...@apache.org>
AuthorDate: Fri May 8 00:12:30 2020 +0800

    In standalone webServiceUrlTls should be https
    
    In standalone, webServiceUrlTls should be formated as `https` instead of `http`
---
 pulsar-broker/src/main/java/org/apache/pulsar/PulsarStandalone.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pulsar-broker/src/main/java/org/apache/pulsar/PulsarStandalone.java b/pulsar-broker/src/main/java/org/apache/pulsar/PulsarStandalone.java
index 7c76257..32de516 100644
--- a/pulsar-broker/src/main/java/org/apache/pulsar/PulsarStandalone.java
+++ b/pulsar-broker/src/main/java/org/apache/pulsar/PulsarStandalone.java
@@ -332,7 +332,7 @@ public class PulsarStandalone implements AutoCloseable {
             createSampleNameSpace(clusterData, cluster);
         } else {
             URL webServiceUrlTls = new URL(
-                    String.format("http://%s:%d", config.getAdvertisedAddress(), config.getWebServicePortTls().get()));
+                    String.format("https://%s:%d", config.getAdvertisedAddress(), config.getWebServicePortTls().get()));
             String brokerServiceUrlTls = String.format("pulsar+ssl://%s:%d", config.getAdvertisedAddress(),
                     config.getBrokerServicePortTls().get());
             admin = PulsarAdmin.builder().serviceHttpUrl(webServiceUrlTls.toString()).authentication(