Merge branch 'master' of https://gitea.nxsir.cn/nanxun/IM_NEW
This commit is contained in:
@@ -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";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user