Skip to content

Set the auth code via environment variable #14142

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 18, 2025
Merged

Set the auth code via environment variable #14142

merged 2 commits into from
Feb 18, 2025

Conversation

proofrock
Copy link
Contributor

Feature or bug? 特性或者缺陷?

Feature, as outlined in Issue #14140

In what scenarios do you need this feature?

In a docker installation, it is somewhat cumbersome to set the auth key via commandline.

Describe the optimal solution

It would be nice to be able to set it via an environment variable, like

docker run -d
-v myvolume:/siyuan/workspace
-p 6806:6806
-e SIYUAN_ACCESS_AUTH_CODE=abcd
siyuan:latest
--workspace /siyuan/workspace

Describe the candidate solution

If both the env var and the commandline switch are provided, in my code, the commandline has priority.

@88250 88250 added this to the 3.1.23 milestone Feb 18, 2025
@88250 88250 merged commit 0f3b94c into siyuan-note:dev Feb 18, 2025
@88250
Copy link
Member

88250 commented Feb 18, 2025

感谢你的贡献,思源有你更精彩!
Thank you for your contribution. SiYuan will be more wonderful with you!

@proofrock
Copy link
Contributor Author

感谢你的贡献,思源有你更精彩! Thank you for your contribution. SiYuan will be more wonderful with you!

Definitely my pleasure!

mouyase pushed a commit to mouyase/siyuan that referenced this pull request Feb 28, 2025
* Set auth code via env var

* Set auth code via env var (zhCN and jaJP translations)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants