Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

read telegram token from file. #15

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

shizunge
Copy link
Contributor

Docker does not use environment variables to manage secrets. Instead docker mount secrets as a file in the container.

This change add a new option TELEGRAM_BOT_TOKEN_FILE to read token from a file and it takes precedence.

@vjFaLk
Copy link
Owner

vjFaLk commented Mar 8, 2022

Hey @shizunge you can add env vars when creating a container. That's how I use it.

Or did I misunderstand your point?

@shizunge
Copy link
Contributor Author

shizunge commented Mar 8, 2022

We can use environment variables.
But docker secrets is a better way to manage sensitive data than environment variables. (I am using docker)

https://docs.docker.com/engine/swarm/secrets/
https://stackoverflow.com/questions/44615837/why-is-docker-secrets-more-secure-than-environment-variables

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants