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

update readme #72

Merged
merged 2 commits into from
Apr 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
16 changes: 16 additions & 0 deletions charts/dify/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,22 @@ The minimal configure provided above is sufficient for experiment but **without
You **must do** the following extra work before put it into production!!


### Protect Sensitive info with secret
Environment variable like `SECRET_KEY` could be harmful if leaked, it is adviced to protect them using secret or csi volume.

The example of using secret is like
```
global:
extraBackendEnvs:
- name: SECRET_KEY
valueFrom:
secretKeyRef:
name: dify
key: SECRET_KEY
```

Read more: https://kubernetes.io/docs/concepts/security/secrets-good-practices/

### External postgresql

1. set the `postgresql.embedded` to `false`
Expand Down
18 changes: 12 additions & 6 deletions charts/dify/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,23 @@ global:
# * frontend
# * api
# * worker
extraEnvs:
# SECRET_KEY is a must, check https://docs.dify.ai/getting-started/install-self-hosted/environments#secret_key for detail
- name: SECRET_KEY
value: "PleaseReplaceThisToYourSecret"
extraEnvs: []

# the following extra configs would be injected into:
# * api
# * worker
extraBackendEnvs: []
extraBackendEnvs:
# SECRET_KEY is a must, check https://docs.dify.ai/getting-started/install-self-hosted/environments#secret_key for detail
# read more on the readme page for secret ref
- name: SECRET_KEY
value: "PleaseReplaceThisToYourSecretOrUse"
# use secretRef to protect your secret
# - name: SECRET_KEY
# value: xxx
# valueFrom:
# secretKeyRef:
# name: dify
# key: SECRET_KEY


ingress:
enabled: false
Expand Down
Loading