This commit is contained in:
2026-08-31 14:42:22 +08:00
72 changed files with 2479 additions and 168 deletions
+1 -1
View File
@@ -2,6 +2,6 @@
{
public class ConsulOption
{
public string Url { get; private set; } = "http://192.168.5.100:8500";
public string Url { get; private set; } = "http://192.168.5.100:8501";
}
}
+6
View File
@@ -22,6 +22,12 @@ namespace IM.InitCommon
public string Bucket { get; init; } = default!;
/// <summary>
/// 公开读桶名;Local provider 下作为 public 目录名使用。
/// 文件所在 Bucket == PublicBucket 即视为公开,可生成直链。
/// </summary>
public string? PublicBucket { get; init; }
public string Region { get; init; } = default!;
public string? Endpoint { get; init; }
@@ -30,7 +30,7 @@ namespace IM.InitCommon
// 优先从环境变量读取
string consulUrl =
Environment.GetEnvironmentVariable("CONSUL_URL")
?? "http://192.168.5.100:8500";
?? "http://192.168.5.100:8501";
string consulKey = $"IM/{env.EnvironmentName}/appsettings.json";
string serviceConsulKey = $"IM/{env.EnvironmentName}/{serviceName}/appsettings.json";