Rocket Chat Configuration for OpenTeleRehab
Installation
It is already set up through docker-compose.yml of the project distribution package, the service named rocketchat and its dependencies mongo and mongo-init-replica.
After you start your docker containers, you should be able to access Rocket chat through this URL:Â http://localhost:3000/
Admin registration / first startup
Open this URL:Â http://localhost:3000/Â in your browser, you will see the form step wizard with 4 steps
In step #1: please make sure to use the real email account for Organization Email because Rocket Chat will do background verification. If you use a fake email, your registration will fail. This email can be changed afterward.
Â
In step #3: please select "No" for Auto opt-in new users for Two Factor via email. This option can be changed afterward as well.
Configuration for OpenRehab
Â
Allow user to have edit messages and delete private chat room. Search for edit-message and delete-p make sure its check under group: user
Enable Rest API security CORS. Go to General (search in Settings) → expand accordion REST Api → Enable CORS
Admin personal access token for Therapist and Patient service
You can find sample environment variables for both Therapist and Patient service from file .env.example. To generate access token click on admin profile thumbnail → My Account → Personal Access tokens
Fill in the name of your access token for example: Admin Access Tokens for OpenRehab → click Add
You might need to enter admin password for security verification
There will be a popup with userId and token, please copy those values for ROCKET_CHAT_ADMIN_USER_ID and ROCKET_CHAT_ADMIN_AUTH_TOKEN of your .env file
ROCKET_CHAT_URL=http://rocketchat:3000
ROCKET_CHAT_ADMIN_USER_ID=
ROCKET_CHAT_ADMIN_AUTH_TOKEN=
ROCKET_CHAT_ADMIN_PASSWORD=H1V-CHAT@ADM1N
Admin Permission to Delete ChatRooms
You can find the screenshot below of how to configure the permission
OpenTeleRehab - Powered by Humanity & Inclusion