🎨 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:
Germano Rizzo 2025-02-18 14:15:05 +01:00 committed by GitHub
parent 22a6c34d94
commit 0f3b94c447
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 13 additions and 3 deletions

View file

@ -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: