Skip to content

Commit ca3c50a

Browse files
committed
docs: Clarify custom secrets definition and mention environment variable support
1 parent 864db9d commit ca3c50a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/06-concepts/07-configuration.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,7 @@ These can be separately declared for each run mode in the corresponding yaml fil
7171

7272
### Secrets
7373

74-
Secrets are declared in the `passwords.yaml` file. The password file is structured with a common `shared` section, any secret put here will be used in all run modes. The other sections are the names of the run modes followed by respective key/value pairs.
75-
76-
You can define your own custom secrets in the [passwords file](#passwords-file-example) by adding them to either the `shared` section (to make them available in all run modes) or to specific run mode sections. These custom secrets will be available in your code through the `Session.passwords` map.
74+
Secrets are declared in the `passwords.yaml` file. The password file is structured with a common `shared` section, any secret put here will be used in all run modes. The other sections are the names of the run modes followed by respective key/value pairs. You can also define custom secrets using [environment variables](#2-via-environment-variables).
7775

7876
#### Built-in Secrets
7977

@@ -101,11 +99,13 @@ The following secrets are used by official Serverpod packages:
10199

102100
#### Custom Secrets
103101

102+
You can define your own custom secrets in the [passwords file](#passwords-file-example) by adding them to either the `shared` section (to make them available in all run modes) or to specific run mode sections. These custom secrets will be available in your code through the `Session.passwords` map.
103+
104104
You can define custom passwords in two ways:
105105

106106
##### 1. Via Passwords File
107107

108-
Add your custom secrets directly to the passwords file under the `shared` section (available in all run modes) or under specific run mode sections:
108+
Add your custom secrets directly to the passwords file under the `shared` section (available in all run modes) or under specific run mode sections.
109109

110110
```yaml
111111
shared:

0 commit comments

Comments
 (0)