Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add params global.port for dify #75

Merged
merged 3 commits into from
Apr 18, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions charts/dify/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,21 @@ create your own values file , save as `values.yaml`
```yaml
global:
host: "mydify.example.com"
port: ""
LeoQuote marked this conversation as resolved.
Show resolved Hide resolved
enableTLS: false

image:
# Set to the latest version of dify
# Check the version here: https://github.com/langgenius/dify/releases
# If not set, Using the default value in Chart.yaml
tag: "0.6.2"
extraBackendEnvs:
- name: SECRET_KEY
value: "generate your own one"
- name: LOG_LEVEL
value: "DEBUG"
- name: VECTOR_STORE
value: "milvus"
extraBackendEnvs:
- name: SECRET_KEY
value: "generate your own one"
- name: LOG_LEVEL
value: "DEBUG"
- name: VECTOR_STORE
value: "milvus"

ingress:
enabled: true
Expand Down
2 changes: 1 addition & 1 deletion charts/dify/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Create the name of the service account to use
{{- end }}

{{- define "dify.baseUrl" -}}
{{ if .Values.global.enableTLS }}https://{{ else }}http://{{ end }}{{.Values.global.host}}
{{ if .Values.global.enableTLS }}https://{{ else }}http://{{ end }}{{.Values.global.host}}{{ if .Values.global.port }}:{{.Values.global.port}}{{ end }}
{{- end }}

{{/*
Expand Down
1 change: 1 addition & 0 deletions charts/dify/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ fullnameOverride: ""

global:
host: "chart-example.local"
port: ""
LeoQuote marked this conversation as resolved.
Show resolved Hide resolved
enableTLS: false
image:
tag: ""
Expand Down