You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: switch example credentials to fill-in placeholders
Adopt a hybrid convention: replace runnable example values with
shell-safe placeholders <your-access-key> / <your-secret-key> (quoted
inside shell/SDK snippets, bare inside heredoc/compose), so users must
substitute their own values, and add openssl rand generation hints and
security callouts. Access keys are now placeholders too.
Copy file name to clipboardExpand all lines: docs/installation/docker/index.md
+18-18Lines changed: 18 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -70,16 +70,16 @@ docker run -d \
70
70
-p 9000:9000 \
71
71
-p 9001:9001 \
72
72
-v /mnt/rustfs/data:/data \
73
-
-e RUSTFS_ACCESS_KEY=rustfsadmin \
74
-
-e RUSTFS_SECRET_KEY=change-your-password \
73
+
-e RUSTFS_ACCESS_KEY="<your-access-key>" \
74
+
-e RUSTFS_SECRET_KEY="<your-secret-key>" \
75
75
-e RUSTFS_CONSOLE_ENABLE=true \
76
76
-e RUSTFS_SERVER_DOMAINS=example.com \
77
77
rustfs/rustfs:latest \
78
78
--address :9000 \
79
79
--console-enable \
80
80
--server-domains example.com \
81
-
--access-key rustfsadmin \
82
-
--secret-key change-your-password \
81
+
--access-key "<your-access-key>" \
82
+
--secret-key "<your-secret-key>" \
83
83
/data
84
84
```
85
85
@@ -89,17 +89,17 @@ docker run -d \
89
89
```bash
90
90
-e RUSTFS_ADDRESS=:9000 \
91
91
-e RUSTFS_SERVER_DOMAINS=example.com \
92
-
-e RUSTFS_ACCESS_KEY=rustfsadmin \
93
-
-e RUSTFS_SECRET_KEY=change-your-password \
92
+
-e RUSTFS_ACCESS_KEY="<your-access-key>" \
93
+
-e RUSTFS_SECRET_KEY="<your-secret-key>" \
94
94
-e RUSTFS_CONSOLE_ENABLE=true \
95
95
```
96
96
97
97
2.**命令行参数方式**:
98
98
```
99
99
--address :9000 \
100
100
--server-domains example.com \
101
-
--access-key rustfsadmin \
102
-
--secret-key change-your-password \
101
+
--access-key "<your-access-key>" \
102
+
--secret-key "<your-secret-key>" \
103
103
--console-enable \
104
104
```
105
105
@@ -136,11 +136,11 @@ docker run -d \
136
136
-p 9000:9000 \
137
137
-p 9001:9001 \
138
138
-v /mnt/data:/data \
139
-
-e RUSTFS_ACCESS_KEY=rustfsadmin \
140
-
-e RUSTFS_SECRET_KEY=change-your-password \
139
+
-e RUSTFS_ACCESS_KEY="<your-access-key>" \
140
+
-e RUSTFS_SECRET_KEY="<your-secret-key>" \
141
141
rustfs/rustfs:latest \
142
-
--access-key rustfsadmin \
143
-
--secret-key change-your-password \
142
+
--access-key "<your-access-key>" \
143
+
--secret-key "<your-secret-key>" \
144
144
/data
145
145
```
146
146
@@ -207,7 +207,7 @@ CONTAINER ID IMAGE COMMAND
207
207
e07121ecdd39 rustfs/rustfs:latest "/entrypoint.sh rust…" 2 seconds ago Up 1 second (health: starting) 0.0.0.0:9000-9001->9000-9001/tcp, :::9000-9001->9000-9001/tcp rustfs-server
0 commit comments