Skip to content

Conversation

@sheltonsuen
Copy link

after upgrade to dify 1.10.0 without RC tag, the triggers not able to exec workflows automatcily due to workers not able to find the sandbox service

@LeoQuote
Copy link
Contributor

LeoQuote commented Nov 18, 2025

Thank you for your PR. This configuration is indeed required by both backend services, API and worker. Currently, we have only added the corresponding environment variable to the API. In fact, we have already designed a Helm function dify.commonBackendEnvs in advance to override such environment variables. Please consider integrating this logic into that function, rather than independently adding environment variables to both services.

{{- define "dify.commonBackendEnvs" -}}
- name: STORAGE_TYPE
value: {{ .Values.global.storageType }}
{{- if .Values.redis.embedded }}
- name: CELERY_BROKER_URL
value: redis://:{{ .Values.redis.auth.password }}@{{ include "dify.fullname" . }}-redis-master:6379/1
- name: REDIS_PORT
value: "6379"
- name: REDIS_HOST
value: {{ include "dify.fullname" . }}-redis-master
- name: REDIS_DB
value: "1"
- name: REDIS_PASSWORD
value: {{ .Values.redis.auth.password }}
{{- end }}
{{- if .Values.postgresql.embedded }}
- name: DB_USERNAME
value: postgres
- name: DB_PASSWORD
value: "{{ .Values.postgresql.auth.postgresPassword }}"
- name: DB_HOST
value: {{ include "dify.fullname" . }}-postgresql
- name: DB_PORT
value: "5432"
- name: DB_DATABASE
value: {{ .Values.postgresql.auth.database }}
{{- end }}
{{- if .Values.minio.embedded }}
- name: S3_ENDPOINT
value: http://{{ include "dify.fullname" . }}-minio:{{ .Values.minio.service.ports.api }}
- name: S3_BUCKET_NAME
value: {{ .Values.minio.defaultBuckets }}
- name: S3_ACCESS_KEY
value: {{ .Values.minio.auth.rootUser }}
- name: S3_SECRET_KEY
value: {{ .Values.minio.auth.rootPassword }}
{{- end }}
{{- if .Values.pluginDaemon.enabled }}
- name: PLUGIN_DAEMON_URL
value: "http://{{ include "dify.fullname" . }}-plugin-daemon:{{ .Values.pluginDaemon.service.port }}"
- name: MARKETPLACE_API_URL
value: 'https://marketplace.dify.ai'
- name: PLUGIN_DAEMON_KEY
{{- if .Values.pluginDaemon.serverKeySecret }}
valueFrom:
secretKeyRef:
name: {{ .Values.pluginDaemon.serverKeySecret }}
key: plugin-daemon-key
{{- else if .Values.pluginDaemon.serverKey }}
value: {{ .Values.pluginDaemon.serverKey | quote }}
{{- else }}
{{- end }}
- name: PLUGIN_DIFY_INNER_API_KEY
{{- if .Values.pluginDaemon.difyInnerApiKeySecret }}
valueFrom:
secretKeyRef:
name: {{ .Values.pluginDaemon.difyInnerApiKeySecret }}
key: plugin-dify-inner-api-key
{{- else if .Values.pluginDaemon.difyInnerApiKey }}
value: {{ .Values.pluginDaemon.difyInnerApiKey | quote }}
{{- else }}
{{- end }}
- name: INNER_API_KEY_FOR_PLUGIN
{{- if .Values.pluginDaemon.difyInnerApiKeySecret }}
valueFrom:
secretKeyRef:
name: {{ .Values.pluginDaemon.difyInnerApiKeySecret }}
key: plugin-dify-inner-api-key
{{- else if .Values.pluginDaemon.difyInnerApiKey }}
value: {{ .Values.pluginDaemon.difyInnerApiKey | quote }}
{{- else }}
{{- end }}
- name: PLUGIN_DIFY_INNER_API_URL
value: http://{{ include "dify.fullname" . }}-api-svc:{{ .Values.api.service.port }}
{{- end }}
{{- end }}

@LeoQuote
Copy link
Contributor

LeoQuote commented Nov 18, 2025

Also, you need to bump the chart version to get it merged

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