feat: 开源准备与 upgrade URL 构建时配置
- upgrade: SECRETS_UPGRADE_URL 改为构建时优先(option_env!),CI 自动注入 - upgrade: 支持运行时回退(.env/export),添加 dotenvy 加载 .env - 泛化示例:IP/实例 ID/域名/密钥名改为示例值(10.0.0.1、example.com 等) - tasks.json: 文件 secret 测试改用 test-fixtures/example-key.pem - 文档更新:AGENTS.md、README.md Made-with: Cursor
This commit is contained in:
@@ -542,7 +542,7 @@ mod tests {
|
||||
kind: "service".to_string(),
|
||||
name: "gitea.main".to_string(),
|
||||
tags: vec!["prod".to_string()],
|
||||
metadata: json!({"url": "https://gitea.refining.dev", "enabled": true}),
|
||||
metadata: json!({"url": "https://code.example.com", "enabled": true}),
|
||||
version: 1,
|
||||
created_at: Utc::now(),
|
||||
updated_at: Utc::now(),
|
||||
@@ -579,7 +579,7 @@ mod tests {
|
||||
|
||||
assert_eq!(
|
||||
map.get("GITEA_MAIN_URL").map(String::as_str),
|
||||
Some("https://gitea.refining.dev")
|
||||
Some("https://code.example.com")
|
||||
);
|
||||
assert_eq!(
|
||||
map.get("GITEA_MAIN_ENABLED").map(String::as_str),
|
||||
|
||||
Reference in New Issue
Block a user