Skip to content
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

功能请求:使用环境变量代替命令行参数来实现参数自定义 #23

Open
devome opened this issue Oct 24, 2024 · 3 comments

Comments

@devome
Copy link
Contributor

devome commented Oct 24, 2024

目前的后端程序只支持命令行参数传入自定义信息,但参数中会带有app_key和smtp_password这类敏感信息,这样会导致这些信息会出现在进程信息中。

一般来说,还是建议每个用来传递自定义信息的命令行参数都支持以环境变量来设置,这样无论是对Docker用户来说,还是对systemd用户来说,都可以更好的隐藏敏感信息。

@llaoj
Copy link
Owner

llaoj commented Oct 24, 2024

有道理, 后面会考虑开发. 感谢建议.

@devome
Copy link
Contributor Author

devome commented Oct 24, 2024

我已经把前端程序和后端程序打包到了ArchLinux User Repo上去了,同时也提了个PR。

不过目前使用的方法仍然只能是直接在命令行中传递参数,如果后续上述功能改进,我再改进下打包内容吧。

@llaoj
Copy link
Owner

llaoj commented Nov 20, 2024

感谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants