Skip to content

Commit e5e4989

Browse files
committed
Correct CLI_API_URL and FILES_API_URL configuration
1 parent 2ad1883 commit e5e4989

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

charts/dify/templates/config.tpl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ FILES_URL: {{ .Values.global.filesDomain | quote }}
2323
# used to display trigger endpoint API Base URL to the front-end.
2424
# Example: https://api.dify.ai
2525
TRIGGER_URL: {{ .Values.global.triggerDomain | quote }}
26+
{{- if .Values.agentbox.enabled }}
27+
CLI_API_URL: "http://{{ include "dify.api.fullname" . }}:{{ .Values.api.service.port }}"
28+
FILES_API_URL: "http://{{ include "dify.api.fullname" . }}:{{ .Values.api.service.port }}"
29+
{{- end }}
2630
{{- end }}
2731

2832
{{- define "dify.api.config" -}}
@@ -521,8 +525,6 @@ SMTP_OPPORTUNISTIC_TLS: {{ .Values.api.mail.smtp.tls.optimistic | toString | quo
521525
{{- define "dify.sandbox.config" -}}
522526
GIN_MODE: release
523527
SANDBOX_PORT: '8194'
524-
CLI_API_URL: "http://{{ include "dify.api.fullname" . }}:{{ .Values.api.service.port }}"
525-
FILES_API_URL: "http://{{ include "dify.api.fullname" . }}:{{ .Values.api.service.port }}"
526528
{{- if .Values.ssrfProxy.enabled }}
527529
HTTP_PROXY: http://{{ template "dify.ssrfProxy.fullname" .}}:{{ .Values.ssrfProxy.service.port }}
528530
HTTPS_PROXY: http://{{ template "dify.ssrfProxy.fullname" .}}:{{ .Values.ssrfProxy.service.port }}

0 commit comments

Comments
 (0)