首页 > 代码库 > [Now] Configure secrets and environment variables with Zeit’s Now
[Now] Configure secrets and environment variables with Zeit’s Now
Often your project will require some secret keys or tokens - for instance, API keys or database authentication information. Learn how to safely and easily deploy secrets to now, and how to expose them as environment variables that your applications can load without making them public to the world.
Deploy with env variable:
now -e GREETING=Hello
now -e GREETING=Hello -e NAME=Egghead
But sometime you might don‘t know the variable be public. You want to make it secret.
now secret add greeting Hellonow secret add name Egghead
Then you can make a script to deploy:
now -e GREETING=@greeting -e NAME=@name
List your all secrets:
now secrets ls
Remove recret:
now secret remove name
[Now] Configure secrets and environment variables with Zeit’s Now
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。