Skip to content

Commit

Permalink
chore : Configuration adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
wzh425 committed Feb 24, 2023
1 parent 1083322 commit 8c3c9db
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/Services/Masa.Mc.Service/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@
});
var publicConfiguration = builder.Services.GetMasaConfiguration().ConfigurationApi.GetPublic();
var ossOptions = publicConfiguration.GetSection("$public.OSS").Get<OssOptions>();
builder.Services.AddAliyunStorage(new AliyunStorageOptions(ossOptions.AccessId, ossOptions.AccessSecret, ossOptions.Endpoint, ossOptions.RoleArn, ossOptions.RoleSessionName)
builder.Services.AddObjectStorage(option => option.UseAliyunStorage(new AliyunStorageOptions(ossOptions.AccessId, ossOptions.AccessSecret, ossOptions.Endpoint, ossOptions.RoleArn, ossOptions.RoleSessionName)
{
Sts = new AliyunStsOptions()
{
RegionId = ossOptions.RegionId
}
});
}));

builder.Services.AddObservable(builder.Logging, () =>
{
Expand Down
20 changes: 19 additions & 1 deletion src/Services/Masa.Mc.Service/appsettings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{
"ConnectionStrings": {
"DefaultConnection": "Server=rm-bp17pbv791jbq67z6.sqlserver.rds.aliyuncs.com,3433;Database=loncloud-mc;User Id=masastack;Password=Hzss@123masastack;"
},
"Logging": {
"LogLevel": {
"Default": "Information",
Expand All @@ -12,5 +15,20 @@
"AccessKeyId": "",
"EndPoint": "dysmsapi.aliyuncs.com"
},
"AppId": "masa-mc-service-admin"
"DccOptions": {
"ManageServiceAddress": "https://dcc-service.lonsid.cn/",
"RedisOptions": {
"Servers": [
{
"Host": "r-bp1pu2t1ydd4pdkozz.redis.rds.aliyuncs.com",
"Port": "6379"
}
],
"DefaultDatabase": 8,
"Password": "hzss@123redis"
}
},
"AppId": "masa-mc-service-admin",
"Secret": "",
"Cluster": "Default"
}
7 changes: 0 additions & 7 deletions src/Web/Masa.Mc.Web.Admin.Server/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,6 @@
}
},
"AllowedHosts": "*",
"Masa": {
"Observable": {
"ServiceName": "masa-mc-web",
"ServiceVersion": "1.0.0",
"OtlpUrl": "http://otel-collector-dev.open-telemetry:4317"
}
},
"DccOptions": {
"ManageServiceAddress": "https://dcc-service.lonsid.cn/",
"RedisOptions": {
Expand Down

0 comments on commit 8c3c9db

Please sign in to comment.