[Now] Configure secrets and environment variables with Zeit’s Now

Posted Answer1215

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了[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 Hello
now secret add name Egghead

 

Then you can make a script to deploy:

 

List your all secrets:

now secrets ls

Remove recret:

now secret remove name

 

以上是关于[Now] Configure secrets and environment variables with Zeit’s Now的主要内容,如果未能解决你的问题,请参考以下文章

[NodeJS] Use Secrets When Deploying Applications with Now

gitea configure

k8s 配置存储之 Configmap & secret

Kubernetes存储之Secret

Kubernetes-Secret

python新模块:secrets模块(为账户密码)