Skip to content

Commit

Permalink
Fix #183
Browse files Browse the repository at this point in the history
  • Loading branch information
agolybev committed Sep 25, 2019
1 parent 77d47ee commit db01421
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions run-document-server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ parse_rabbitmq_url(){
# extract the path (if any)
local path="$(echo $url | grep / | cut -d/ -f2-)"

AMQP_SERVER_PROTO=${proto:0:-3}
AMQP_SERVER_HOST=$host
AMQP_SERVER_USER=$user
AMQP_SERVER_PASS=$pass
Expand Down Expand Up @@ -176,6 +177,15 @@ update_rabbitmq_setting(){
else
${JSON} -I -e "delete this.activemq.connectOptions.password"
fi

case "${AMQP_SERVER_PROTO}" in
amqp+ssl|amqps)
${JSON} -I -e "this.activemq.connectOptions.transport = 'tls'"
;;
*)
${JSON} -I -e "delete this.activemq.connectOptions.transport"
;;
esac
fi
}

Expand Down

0 comments on commit db01421

Please # to comment.