Skip to content
#

architecture

Here are 2,891 public repositories matching this topic...

ymh199478
ymh199478 commented Jun 16, 2021

背景和动机

我们不希望将一些敏感的内容提交到 git 仓库中,所以这些敏感内容我们会和提交到 git 仓库的配置文件分离。

我们将这些机密内容放在 dotenv运行时加载到环境变量 或是 直接存于环境变量 中。

除此之外,配置可能因为程序运行环境发生改变,而需要动态的进行配置。

所以我们希望 kratos 能够在配置文件中动态的识别环境变量占位符,并使用环境变量值替换配置的内容。

提议的方案

修订1:提议方案需根据 @tonybase 描述建议修正
修订2:语义占位符采用 os.Expand 解析规则完成,废弃修订1的讨论

提案在配置文件中,通过占位符来替换环境变量

⚔️ A common architecture for Android applications developing based on MVP, integrates many open source projects, to make your developing quicker and easier (一个整合了大量主流开源项目高度可配置化的 Android MVP 快速集成框架).

  • Updated Oct 20, 2020
  • Java

Improve this page

Add a description, image, and links to the architecture topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the architecture topic, visit your repo's landing page and select "manage topics."

Learn more