mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 14:40:12 +01:00
🎨 Set the auth code via environment variable (#14142)
* Set auth code via env var * Set auth code via env var (zhCN and jaJP translations)
This commit is contained in:
parent
22a6c34d94
commit
0f3b94c447
4 changed files with 13 additions and 3 deletions
|
|
@ -208,6 +208,7 @@ docker run -d \
|
|||
* `workspace_dir_host`: The workspace folder path on the host
|
||||
* `workspace_dir_container`: The path of the workspace folder in the container, as specified in `--workspace`
|
||||
* `accessAuthCode`: Access authorization code (please **be sure to modify**, otherwise anyone can access your data)
|
||||
* In alternative, it's possible to set the auth code via the `SIYUAN_ACCESS_AUTH_CODE` env variable. The commandline will always have the priority, if both are set.
|
||||
|
||||
To simplify things, it is recommended to configure the workspace folder path to be consistent on the host and container, such as having both `workspace_dir_host` and `workspace_dir_container` configured as `/siyuan/workspace`. The corresponding startup command would be:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue