diff --git a/.helm/template-values.yaml b/.helm/template-values.yaml index 0a06f3d..982fc9c 100644 --- a/.helm/template-values.yaml +++ b/.helm/template-values.yaml @@ -9,6 +9,7 @@ ingress: appEnv: apiToken: '${TELEGRAM_API_TOKEN}' + secretToken: '${TELEGRAM_SECRET_TOKEN}' imageCredentials: registry: '${DOCKER_REGISTRY}' diff --git a/.helm/templates/app-env-secret.yaml b/.helm/templates/app-env-secret.yaml index 9fa01c5..5680d09 100644 --- a/.helm/templates/app-env-secret.yaml +++ b/.helm/templates/app-env-secret.yaml @@ -6,3 +6,4 @@ metadata: type: Opaque stringData: API_TOKEN: {{ .Values.appEnv.apiToken }} + SECRET_TOKEN: {{ .Values.appEnv.secretToken }} diff --git a/src/bot/index.js b/src/bot/index.js index ddbc79e..1dd1662 100644 --- a/src/bot/index.js +++ b/src/bot/index.js @@ -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();