Open Nodirbek3d opened 3 years ago
Hi! Thanks for issue, I've planned to add this info into readme, but cannot find free time for this)) | env name | description |
---|---|---|
WEBHOOK_TG_PATH |
Just set a random path on server. Like /hola-telegram-webhook-12345 . It should start from / and be a valid URL. Used by Telegram lib to set webhook |
|
GAPPS_PUSH_PATH |
Create a topic and push subscription in Gcloud here: https://console.cloud.google.com/cloudpubsub/topic/list . Then you need to specify in gcloud url for push subscription endpoint like https://example.herokuapp.com/oaoaommm-push . Just copy the path after the host into this variable, so from example above it will be look like /oaoaommm-push |
|
SERVER_PATH |
Just domain of your bot, e.g. https://example.herokuapp.com |
|
GOOGLE_SITE_VERIFICATION |
This something related to project in gcloud. You'll find it I think, maybe, in the settings of gcloud project. Variable will be look like googlebaga2316 |
|
PUB_SUB_TOPIC |
Just name of your topic in project in gcloud. Like projects/PROJECT_ID/topics/TOPIC_NAME |
|
UPDATE_PUB_SUB_TOPIC_PATH |
Another random path for endpoint. Like /update-tokens . It should start from / and be a valid URL. You also need to find a cron job, that will make get request on this endpoint every week. It is needed to renew gmail subscription. |
|
GOOGLE_CREDENTIALS |
Another thing from project config from Gcloud. You'll find it I think, maybe, in the settings of gcloud project. It will be like a JSON string |
Is there any sample of where and how to get all the env variables? It is still not clear to me these env variables and where to get the values for them.