Browse Source

修改配置文件

vue2 1.1.0
WangJunZzz 5 years ago
parent
commit
62a0f5dc16
  1. 3
      Readme.md
  2. 1
      content/aspnetcore/Zzz.sln
  3. 70
      content/aspnetcore/src/Zzz.HttpApi.Host/appsettings.Ali.json
  4. 70
      content/aspnetcore/src/Zzz.HttpApi.Host/appsettings.Staging.json
  5. 70
      content/aspnetcore/src/Zzz.HttpApi.Host/appsettings.json
  6. 20
      content/aspnetcore/src/Zzz.PublicApi.Host/appsettings.Staging.json
  7. 37
      content/aspnetcore/src/Zzz.PublicApi.Host/appsettings.json

3
Readme.md

@ -20,9 +20,10 @@
- .Net Core5.0
- Abp Vnext 4.x ,
- Ant Design, Vue2.x
- Mysql,Redis,Hangfire,ES(日志可选),Nocas(可选,未集成,计划中),RabbitMq(未集成,计划中)
- Mysql,Redis,Hangfire,ES(日志可选),Nocas(可选,选择nocas分支),RabbitMq(未集成,计划中)
- 微服务架构设计, DDD 实践
- 容器化 CI CD
- Xunit 单元测试
### 系统功能

1
content/aspnetcore/Zzz.sln

@ -39,6 +39,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
ProjectSection(SolutionItems) = preProject
common.props = common.props
NuGet.Config = NuGet.Config
..\..\Readme.md = ..\..\Readme.md
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Zzz.PublicApi.Host", "src\Zzz.PublicApi.Host\Zzz.PublicApi.Host.csproj", "{AA3C1547-1A82-470E-9EB7-1C9E9AA50136}"

70
content/aspnetcore/src/Zzz.HttpApi.Host/appsettings.Ali.json

@ -1,17 +1,61 @@
{
"NacosConfig": {
"Listeners": [
{
"Optional": false,
"DataId": "Zzz",
"Group": "Ali"
"App": {
"SelfUrl": "https://localhost:44363",
"CorsOrigins": "https://*.Zzz.com,http://localhost:8083,http://localhost:8081,https://localhost:44307,"
},
"StringEncryption": {
"DefaultPassPhrase": "MY2bTgp2iaHUEp66"
},
"Settings": {
"Abp.Mailing.Smtp.Host": "127.0.0.1",
"Abp.Mailing.Smtp.Port": "25",
"Abp.Mailing.Smtp.UserName": "",
"Abp.Mailing.Smtp.Password": "",
"Abp.Mailing.Smtp.Domain": "",
"Abp.Mailing.Smtp.EnableSsl": "false",
"Abp.Mailing.Smtp.UseDefaultCredentials": "true",
"Abp.Mailing.DefaultFromAddress": "noreply@abp.io",
"Abp.Mailing.DefaultFromDisplayName": "ABP application"
},
"Serilog": {
"MinimumLevel": {
"Default": "Information",
"Override": {
"Microsoft": "Information",
"Microsoft.AspNetCore": "Information",
"System": "Warning",
"Microsoft.Hosting.Lifetime": "Information",
"Microsoft.AspNetCore.Routing": "Information",
"Microsoft.AspNetCore.Hosting.Diagnostics": "Error"
}
}
},
"ConnectionStrings": {
"Default": "Data Source=mysql.development.cn;Database=zzz.db;uid=root;pwd=mysql@;charset=utf8mb4;Allow User Variables=true;AllowLoadLocalInfile=true"
},
"Cache": {
"Redis": {
"ConnectionString": "redis.cn,password=OD5VbzIuAWsHOZV5ncYx9xaDsAMsKXn7",
"DatabaseId": 231
}
},
"AuthServer": {
"Authority": "https://localhost:44363",
"RequireHttpsMetadata": "false"
},
"Jwt": {
"Audience": "http://localhost:5010", //
"SecurityKey": "dzehzRz9a8asdfasfdadfasdfasdfafsdadfasbasdf=",
"Issuer": "Zzz", //
"ExpirationTime": 2 // hour
},
"LogToElasticSearch": {
"Enabled": "true",
"ElasticSearch": {
"Url": "http://es.cn",
"IndexFormat": "Zzz.admin.api.dev-{0:yyyy.MM.dd}",
"UserName": "Zzz",
"Password": "TCYobkZxWu0ELYZY"
}
],
"Optional": false,
"Tenant": "erp",
"ServerAddresses": [ "http://nacos.zzz.cn/" ],
"UserName": "erp.app",
"Password": "Yh@1234"
}
}

70
content/aspnetcore/src/Zzz.HttpApi.Host/appsettings.Staging.json

@ -1,17 +1,61 @@
{
"NacosConfig": {
"Listeners": [
{
"Optional": false,
"DataId": "Zzz",
"Group": "Staging"
"App": {
"SelfUrl": "https://localhost:44363",
"CorsOrigins": "https://*.Zzz.com,http://localhost:8083,http://localhost:8081,https://localhost:44307,"
},
"StringEncryption": {
"DefaultPassPhrase": "MY2bTgp2iaHUEp66"
},
"Settings": {
"Abp.Mailing.Smtp.Host": "127.0.0.1",
"Abp.Mailing.Smtp.Port": "25",
"Abp.Mailing.Smtp.UserName": "",
"Abp.Mailing.Smtp.Password": "",
"Abp.Mailing.Smtp.Domain": "",
"Abp.Mailing.Smtp.EnableSsl": "false",
"Abp.Mailing.Smtp.UseDefaultCredentials": "true",
"Abp.Mailing.DefaultFromAddress": "noreply@abp.io",
"Abp.Mailing.DefaultFromDisplayName": "ABP application"
},
"Serilog": {
"MinimumLevel": {
"Default": "Information",
"Override": {
"Microsoft": "Information",
"Microsoft.AspNetCore": "Information",
"System": "Warning",
"Microsoft.Hosting.Lifetime": "Information",
"Microsoft.AspNetCore.Routing": "Information",
"Microsoft.AspNetCore.Hosting.Diagnostics": "Error"
}
}
},
"ConnectionStrings": {
"Default": "Data Source=mysql.development.cn;Database=zzz.db;uid=root;pwd=mysql@;charset=utf8mb4;Allow User Variables=true;AllowLoadLocalInfile=true"
},
"Cache": {
"Redis": {
"ConnectionString": "redis.cn,password=OD5VbzIuAWsHOZV5ncYx9xaDsAMsKXn7",
"DatabaseId": 231
}
},
"AuthServer": {
"Authority": "https://localhost:44363",
"RequireHttpsMetadata": "false"
},
"Jwt": {
"Audience": "http://localhost:5010", //
"SecurityKey": "dzehzRz9a8asdfasfdadfasdfasdfafsdadfasbasdf=",
"Issuer": "Zzz", //
"ExpirationTime": 2 // hour
},
"LogToElasticSearch": {
"Enabled": "true",
"ElasticSearch": {
"Url": "http://es.cn",
"IndexFormat": "Zzz.admin.api.dev-{0:yyyy.MM.dd}",
"UserName": "Zzz",
"Password": "TCYobkZxWu0ELYZY"
}
],
"Optional": false,
"Tenant": "erp",
"ServerAddresses": [ "http://nacos.zzz.cn/" ],
"UserName": "erp.app",
"Password": "Yh@1234"
}
}

70
content/aspnetcore/src/Zzz.HttpApi.Host/appsettings.json

@ -1,17 +1,61 @@
{
"NacosConfig": {
"Listeners": [
{
"Optional": false,
"DataId": "Zzz",
"Group": "Development"
"App": {
"SelfUrl": "https://localhost:44363",
"CorsOrigins": "https://*.Zzz.com,http://localhost:8083,http://localhost:8081,https://localhost:44307,"
},
"StringEncryption": {
"DefaultPassPhrase": "MY2bTgp2iaHUEp66"
},
"Settings": {
"Abp.Mailing.Smtp.Host": "127.0.0.1",
"Abp.Mailing.Smtp.Port": "25",
"Abp.Mailing.Smtp.UserName": "",
"Abp.Mailing.Smtp.Password": "",
"Abp.Mailing.Smtp.Domain": "",
"Abp.Mailing.Smtp.EnableSsl": "false",
"Abp.Mailing.Smtp.UseDefaultCredentials": "true",
"Abp.Mailing.DefaultFromAddress": "noreply@abp.io",
"Abp.Mailing.DefaultFromDisplayName": "ABP application"
},
"Serilog": {
"MinimumLevel": {
"Default": "Information",
"Override": {
"Microsoft": "Information",
"Microsoft.AspNetCore": "Information",
"System": "Warning",
"Microsoft.Hosting.Lifetime": "Information",
"Microsoft.AspNetCore.Routing": "Information",
"Microsoft.AspNetCore.Hosting.Diagnostics": "Error"
}
}
},
"ConnectionStrings": {
"Default": "Data Source=mysql.development.cn;Database=zzz.db;uid=root;pwd=mysql@;charset=utf8mb4;Allow User Variables=true;AllowLoadLocalInfile=true"
},
"Cache": {
"Redis": {
"ConnectionString": "redis.cn,password=OD5VbzIuAWsHOZV5ncYx9xaDsAMsKXn7",
"DatabaseId": 231
}
},
"AuthServer": {
"Authority": "https://localhost:44363",
"RequireHttpsMetadata": "false"
},
"Jwt": {
"Audience": "http://localhost:5010", //
"SecurityKey": "dzehzRz9a8asdfasfdadfasdfasdfafsdadfasbasdf=",
"Issuer": "Zzz", //
"ExpirationTime": 2 // hour
},
"LogToElasticSearch": {
"Enabled": "true",
"ElasticSearch": {
"Url": "http://es.cn",
"IndexFormat": "Zzz.admin.api.dev-{0:yyyy.MM.dd}",
"UserName": "Zzz",
"Password": "TCYobkZxWu0ELYZY"
}
],
"Optional": false,
"Tenant": "erp",
"ServerAddresses": [ "http://nacos.zzz.cn/" ],
"UserName": "erp.app",
"Password": "Yh@1234"
}
}

20
content/aspnetcore/src/Zzz.PublicApi.Host/appsettings.Staging.json

@ -5,5 +5,25 @@
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"AllowedHosts": "*",
"LogToElasticSearch": {
"Enabled": "true",
"ElasticSearch": {
"Url": "http://es.platform.cn",
"IndexFormat": "Zzz.public.api.dev-{0:yyyy.MM.dd}",
"UserName": "erp",
"Password": "TCYobkZxWu0ELYZY"
}
},
"AuthServer": {
"Authority": "http://sts.vnext.identity.development.cn",
"RequireHttpsMetadata": "false",
"ApiName": "ZzzPublicApi"
},
"RemoteServices": {
"Zzz": {
"BaseUrl": "http://localhost:50000/"
}
}
}

37
content/aspnetcore/src/Zzz.PublicApi.Host/appsettings.json

@ -1,16 +1,29 @@
{
"NacosConfig": {
"Listeners": [
{
"Optional": false,
"DataId": "ZzzPublicApiHost",
"Group": "Development"
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"AllowedHosts": "*",
"LogToElasticSearch": {
"Enabled": "true",
"ElasticSearch": {
"Url": "http://es.platform.cn",
"IndexFormat": "Zzz.public.api.dev-{0:yyyy.MM.dd}",
"UserName": "erp",
"Password": "TCYobkZxWu0ELYZY"
}
},
"AuthServer": {
"Authority": "http://sts.vnext.identity.development.cn",
"RequireHttpsMetadata": "false",
"ApiName": "ZzzPublicApi"
},
"RemoteServices": {
"Zzz": {
"BaseUrl": "http://localhost:50000/"
}
],
"Optional": false,
"Tenant": "erp",
"ServerAddresses": [ "http://nacos.platform.yhglobal.cn/" ],
"UserName": "erp.app",
"Password": "Yh@1234"
}
}
Loading…
Cancel
Save