hubot-rocketchat: Adapter does not connect with https

Hi,

I can’t establish any connection to our Rocket.Chat Instance. I have tried following settings:

ROCKETCHAT_URL='https://$host' 
ROCKETCHAT_ROOM='general' 
LISTEN_ON_ALL_PUBLIC=true 
ROCKETCHAT_USER=bot 
ROCKETCHAT_PASSWORD=bot 
ROCKETCHAT_AUTH=password 

I have got following output:

[Tue Jan 26 2016 09:47:02 GMT+0100 (CET)] INFO Starting Rocketchat adapter...
[Tue Jan 26 2016 09:47:02 GMT+0100 (CET)] INFO Once connected to rooms I will respond to the name: bot
[Tue Jan 26 2016 09:47:02 GMT+0100 (CET)] INFO Connecting To: $host
(logging stops at this point)

I have prepared Rocket.Chat with an user bot and password bot. Is there anything i have forgot to configure?

cheers honnel

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 47 (16 by maintainers)

Most upvoted comments

I think the Readme file should be update, and add ROCKETCHAT_USESSL. set it true will enable the ssl connect.

I had not had any luck connecting over https, but I have found luck by linking the Hubot container and the Rocket.Chat container. I was able to launch Hubot via the following call (which I will automate in my setup).

@honnel have you tried linking and using http?

docker run -it \
    -e ROCKETCHAT_URL="rocketchat:3000" \
    -e ROCKETCHAT_ROOM='my-testing-channel' \
    -e LISTEN_ON_ALL_PUBLIC=false \
    -e ROCKETCHAT_USER=bot.user \
    -e ROCKETCHAT_PASSWORD=secret \
    -e ROCKETCHAT_AUTH=password \
    -e BOT_NAME=mybot \
    --link rocketchat:rocketchat \
    rocketchat/hubot-rocketchat