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

请问配置文件里的密码字段支持环境变量吗? #1340

Closed
theowenyoung opened this issue Oct 29, 2023 · 1 comment
Closed

请问配置文件里的密码字段支持环境变量吗? #1340

theowenyoung opened this issue Oct 29, 2023 · 1 comment

Comments

@theowenyoung
Copy link

Hello, 因为不想把密码储存在明文文件中,想请问下有没有某种方式可以实现 使用环境变量来填充密码?

{
  "servers": [
    {
      "address": "::",
      "port": 12345,
      "method": "chacha20-ietf-poly1305",
      "password": "$ENV.PASWORD",
      "mode": "tcp_and_udp",
      "fast_open": false,
      "timeout": 7200
    }
  ]
}
@zonyitoo
Copy link
Collaborator

"password": "${ENV.PASWORD}"

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