Chat21 Channel Configuration
Pingstreams uses Chat21 as messaging platform. Refer to Architecture overview to understand the product’s modules. In detail the pingstreams-server component uses Chat21 channel for sending chat messages, creating groups, etc.
So in order to correctly configure your Pingstreams installation you MUST configure the following properties:
Required Configuration Properties
Section titled “Required Configuration Properties”FIREBASE_CLIENT_EMAIL
Section titled “FIREBASE_CLIENT_EMAIL”You can get it here. It is in the form:
firebase-adminsdk-******@************.iam.gserviceaccount.comFIREBASE_PROJECT_ID
Section titled “FIREBASE_PROJECT_ID”Get it here.
FIREBASE_APIKEY
Section titled “FIREBASE_APIKEY”Get it here.
FIREBASE_AUTHDOMAIN
Section titled “FIREBASE_AUTHDOMAIN”Get it here. It is in the form:
CHANGEIT.firebaseapp.comFIREBASE_DATABASEURL
Section titled “FIREBASE_DATABASEURL”Get it here. It is in the form:
https://CHANGEIT.firebaseio.comFIREBASE_STORAGEBUCKET
Section titled “FIREBASE_STORAGEBUCKET”You can find it here. It is in the form:
CHANGEIT.appspot.comFIREBASE_MESSAGINGSENDERID
Section titled “FIREBASE_MESSAGINGSENDERID”Get it here. A unique numerical value created when you create your Firebase project, available in the Cloud Messaging tab of the Firebase console Settings pane.
CHAT21_ENABLED
Section titled “CHAT21_ENABLED”Enable Chat21 channel with true value.
FIREBASE_APP_ID
Section titled “FIREBASE_APP_ID”Get it here.
CHAT21_URL
Section titled “CHAT21_URL”Get it here. It is in the form:
https://mypingstreamsinstallation87.cloudfunctions.netCHAT21_ENGINE
Section titled “CHAT21_ENGINE”Enter the default value firebase
CHAT21_APPID
Section titled “CHAT21_APPID”Enter the default value tilechat
CHAT21_ADMIN_TOKEN
Section titled “CHAT21_ADMIN_TOKEN”The Chat21 admin token. The default value is chat21-secret-orgAa. See here to change it.
You can find other information regarding the env variable here: https://github.com/Pingstreams/pingstreams-server/blob/master/.env.sample