Skip to content

Commit

Permalink
added secret token
Browse files Browse the repository at this point in the history
  • Loading branch information
NivEz committed Feb 6, 2024
1 parent d14020d commit ba5ef85
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .helm/template-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ ingress:

appEnv:
apiToken: '${TELEGRAM_API_TOKEN}'
secretToken: '${TELEGRAM_SECRET_TOKEN}'

imageCredentials:
registry: '${DOCKER_REGISTRY}'
Expand Down
1 change: 1 addition & 0 deletions .helm/templates/app-env-secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ metadata:
type: Opaque
stringData:
API_TOKEN: {{ .Values.appEnv.apiToken }}
SECRET_TOKEN: {{ .Values.appEnv.secretToken }}
1 change: 1 addition & 0 deletions src/bot/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ if (process.env.NODE_ENV !== 'production') {

const bot = new Telenode({
apiToken: process.env.API_TOKEN,
secretToken: process.env.SECRET_TOKEN,
});

bot.createServer();
Expand Down

0 comments on commit ba5ef85

Please sign in to comment.