Skip to content

Commit

Permalink
added: TELEGRAM_API_URL, TELEGRAM_FILE_URL, TELEGRAM_LOG properties t…
Browse files Browse the repository at this point in the history
…o server-deployment.yaml
  • Loading branch information
Gabriele Panico committed Oct 4, 2023
1 parent 7007e11 commit 8c7df77
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 8 deletions.
9 changes: 7 additions & 2 deletions helm/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,12 @@ data:
EMAIL_INBOUND_DOMAIN: {{ .Values.EMAIL_INBOUND_DOMAIN | quote }}
DISABLE_SEND_OFFLINE_EMAIL: {{ .Values.DISABLE_SEND_OFFLINE_EMAIL | quote }}
# BOT_RASA_ENDPOINT: {{ .Values.BOT_RASA_ENDPOINT | quote }}
GPT_ENDPOINT: {{ .Values.GPT_ENDPOINT | quote }}
OPENAI_ENDPOINT: {{ .Values.OPENAI_ENDPOINT | quote }}
KB_ENDPOINT: {{ .Values.KB_ENDPOINT | quote }}
TELEGRAM_API_URL: {{ .Values.TELEGRAM_API_URL | quote }}
TELEGRAM_FILE_URL: {{ .Values.TELEGRAM_FILE_URL | quote }}
TELEGRAM_LOG: {{ .Values.TELEGRAM_LOG | quote }}

# ----- CHAT21 SERVER -------
APP_ID: {{ .Values.APP_ID | quote }}
Expand Down Expand Up @@ -193,5 +199,4 @@ data:

{{if .Values.TILEBOT_ENDPOINT}}TILEBOT_ENDPOINT: {{ .Values.TILEBOT_ENDPOINT | quote }}{{ end }}

GPT_ENDPOINT: {{ .Values.GPT_ENDPOINT | quote }}
OPENAI_ENDPOINT: {{ .Values.OPENAI_ENDPOINT | quote }}

22 changes: 21 additions & 1 deletion helm/templates/server-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,27 @@ spec:
valueFrom:
configMapKeyRef:
name: {{ include "tiledesk.fullname" . }}-config
key: OPENAI_ENDPOINT
key: OPENAI_ENDPOINT
- name: KB_ENDPOINT
valueFrom:
configMapKeyRef:
name: {{ include "tiledesk.fullname" . }}-config
key: KB_ENDPOINT
- name: TELEGRAM_API_URL
valueFrom:
configMapKeyRef:
name: {{ include "tiledesk.fullname" . }}-config
key: TELEGRAM_API_URL
- name: TELEGRAM_FILE_URL
valueFrom:
configMapKeyRef:
name: {{ include "tiledesk.fullname" . }}-config
key: TELEGRAM_FILE_URL
- name: TELEGRAM_LOG
valueFrom:
configMapKeyRef:
name: {{ include "tiledesk.fullname" . }}-config
key: TELEGRAM_LOG
# - name: TILEBOT_ENDPOINT
# valueFrom:
# configMapKeyRef:
Expand Down
13 changes: 8 additions & 5 deletions helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,12 @@ EMAIL_INBOUND_DOMAIN: ""
# BOT_DIALOGFLOW_ENDPOINT: ""
DISABLE_SEND_OFFLINE_EMAIL: false
# BOT_RASA_ENDPOINT: ""

GPT_ENDPOINT: CHANGEIT
OPENAI_ENDPOINT: CHANGEIT
KB_ENDPOINT: CHANGEIT
TELEGRAM_API_URL: https://api.telegram.org/bot
TELEGRAM_FILE_URL: https://api.telegram.org/file/bot
TELEGRAM_LOG: debug
###### ------SERVER : END------ ######


Expand Down Expand Up @@ -215,8 +220,6 @@ CLOSE_BOT_UNRESPONSIVE_REQUESTS_ENABLE: true
ENABLE_REDIS_SESSION: false
#TILEBOT_ENDPOINT: CHANGEIT

GPT_ENDPOINT: CHANGEIT
OPENAI_ENDPOINT: CHANGEIT

server:
## Enable deployment of Tiledesk Server
Expand All @@ -225,7 +228,7 @@ server:
resources: {}
image:
repository: tiledesk/tiledesk-server
tag: 2.4.53
tag: 2.4.57

service:
type: ClusterIP
Expand All @@ -238,7 +241,7 @@ serverworker:
resources: {}
image:
repository: tiledesk/tiledesk-server-worker
tag: 2.4.53
tag: 2.4.57

dashboard:
## Enable deployment of Tiledesk Server
Expand Down

0 comments on commit 8c7df77

Please sign in to comment.