tuteng commented on a change in pull request #13665:
URL: https://github.com/apache/pulsar/pull/13665#discussion_r785910185



##########
File path: site2/docs/administration-pulsar-manager.md
##########
@@ -114,69 +68,116 @@ or
 jwt.broker.token.mode=SECRET
 jwt.broker.secret.key=file:///path/broker-secret.key
 ```
+•      `backend.jwt.token`: token for the superuser. You need to configure 
this parameter during cluster initialization.   
+•      `jwt.broker.token.mode`: multiple modes of generating token, including 
PUBLIC, PRIVATE, and SECRET.  
+•      `jwt.broker.public.key`: configure this option if you use the PUBLIC 
mode.  
+•      `jwt.broker.private.key`: configure this option if you use the PRIVATE 
mode.  
+•      `jwt.broker.secret.key`: configure this option if you use the SECRET 
mode.  
+For more information, see [Token Authentication Admin of 
Pulsar](https://pulsar.apache.org/docs/en/security-token-admin/). 
 
-* Method 3: use Docker and enable token authentication.
+Docker command to add profile and key files mount.
 
-```
-export JWT_TOKEN="your-token"
-docker run -it -p 9527:9527 -p 7750:7750 -e REDIRECT_HOST=http://localhost -e 
REDIRECT_PORT=9527 -e DRIVER_CLASS_NAME=org.postgresql.Driver -e 
URL='jdbc:postgresql://127.0.0.1:5432/pulsar_manager' -e USERNAME=pulsar -e 
PASSWORD=pulsar -e LOG_LEVEL=DEBUG -e JWT_TOKEN=$JWT_TOKEN -v $PWD:/data 
apachepulsar/pulsar-manager:v0.2.0 /bin/sh
+```bash
+docker pull apachepulsar/pulsar-manager:v0.2.0
+docker run -it \
+    -p 9527:9527 -p 7750:7750 \
+    -v /your-path/application.properties:/pulsar-manager/pulsar-
+manager/application.properties
+    -v /your-path/private.key:/pulsar-manager/private.key
+    -e 
SPRING_CONFIGURATION_FILE=/pulsar-manager/pulsar-manager/application.properties 
\
+    apachepulsar/pulsar-manager:v0.2.0

Review comment:
       
   ```
   docker run -it \
       -p 9527:9527 -p 7750:7750 \
       -v 
/your-path/application.properties:/pulsar-manager/pulsar-manager/application.properties
 \
       -v /your-path/private.key:/pulsar-manager/private.key \
       -e 
SPRING_CONFIGURATION_FILE=/pulsar-manager/pulsar-manager/application.properties 
\
       apachepulsar/pulsar-manager:v0.2.0
   ```
   
   Should this command look like this?




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to