Skip to content

Commit

Permalink
update readme (#72)
Browse files Browse the repository at this point in the history
* update readme

* Update values.yaml
  • Loading branch information
LeoQuote authored Apr 11, 2024
1 parent 6c7ec6c commit 120efc9
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 6 deletions.
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

0 comments on commit 120efc9

Please sign in to comment.