返回文档
部署

管理环境变量

安全地管理应用程序的环境变量和密钥。

Intermediate5 min readUpdated 2024-02-01

添加环境变量

环境变量在部署期间或从应用设置中配置:

  1. 打开应用的设置
  2. 前往"环境"标签页
  3. 添加、编辑或删除变量
  4. 点击"保存"应用更改

更改会触发容器重启以应用新值。

秘密掩码

Server Compass 掩码敏感值:

  • 密码默认隐藏
  • API 密钥部分掩码
  • 点击眼睛图标显示值
  • 导出默认排除敏感值

环境保险库

使用环境保险库共享密钥:

  1. 前往设置 > 环境保险库
  2. 创建可重用的环境组
  3. 将组应用于多个应用
  4. 更新一次,应用到各处

Screenshots

管理环境变量 - Screenshot 1

Video Tutorials

Related Features

Ready to try Server Compass?

Download the app and deploy your first application in under 5 minutes.

Download Server Compass