dokku-rabbitmq-plugin icon indicating copy to clipboard operation
dokku-rabbitmq-plugin copied to clipboard

BROKER_URL environment variable does not contain user name

Open evdoks opened this issue 10 years ago • 2 comments

After deploying a RabbitMQ container, following environment variable are set for the dokku app:

root@host:~#dokku config pusher-dev
=== app config vars ===
API_KEY:           3BBmHukpC4Z5goOotNFgz1IaNJykjp2WSIfmCMLv7WI
BROKER_ADMIN_PORT: ${BROKER_PORT_15672_TCP_PORT}
BROKER_AMQP_PORT:  ${BROKER_PORT_5672_TCP_PORT}
BROKER_HOST:       ${BROKER_PORT_5672_TCP_ADDR}
BROKER_PASSWORD:   cDEsedDVQdY0qoQC
BROKER_PATH:       //
BROKER_SCHEME:     amqp
BROKER_URL:        amqp://${BROKER_USERNAME}:${BROKER_PASSWORD}@${BROKER_PORT_5672_TCP_ADDR}:${BROKER_PORT_15672_TCP_PORT}//
BROKER_USERNAME:   admin

which seems to be alright. However, when starting an app container (dokku run app bash), the corresponding BROKER_URL environment variable does not contain the username:

BROKER_URL=amqp://:[email protected]:15672//

Am I missing something?

evdoks avatar Aug 21 '14 22:08 evdoks

that's super weird, can you access the BROKER_USERNAME variable from your container via bash even if its not in the URL?

AlJohri avatar Aug 29 '14 07:08 AlJohri

I have the same issue. @AlJohri, yes BROKER_USERNAME is set.

georgewhewell avatar Nov 04 '14 12:11 georgewhewell