修复部署问题

This commit is contained in:
橙子
2022-09-26 00:27:55 +08:00
parent ac946f4903
commit 83ce9fb4c4
4 changed files with 50 additions and 39 deletions

View File

@@ -127,7 +127,8 @@ builder.Services.AddSignalR();
builder.Services.AddHeiCaptcha(); builder.Services.AddHeiCaptcha();
#region #region
//<2F><><EFBFBD><EFBFBD>Http<74><70><EFBFBD><EFBFBD><EFBFBD><EFBFBD> //<2F><><EFBFBD><EFBFBD>Http<74><70><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
#endregion #endregionv
builder.Services.AddHttpContextAccessor(); builder.Services.AddHttpContextAccessor();
//----------------------------------------------------------------------------------------------------------- //-----------------------------------------------------------------------------------------------------------
var app = builder.Build(); var app = builder.Build();

View File

@@ -30,6 +30,15 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<None Update="Config\SwaggerDoc.xml">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="key.pem">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="public.pem">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="yi-sqlsugar-dev.db"> <None Update="yi-sqlsugar-dev.db">
<CopyToOutputDirectory>Always</CopyToOutputDirectory> <CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None> </None>

View File

@@ -1,5 +1,5 @@
{ {
"StartUrl": "http://*:19001", "StartUrl": "http://localohost:19001",
"Logging": { "Logging": {
"LogLevel": { "LogLevel": {
"Default": "Information", "Default": "Information",
@@ -10,12 +10,10 @@
"AllowedHosts": "*", "AllowedHosts": "*",
"Consul_Enabled": false, "Consul_Enabled": false,
"DbSeed_Enabled": false,
"Apollo_Enabled": false, "Apollo_Enabled": false,
"HealthCheck_Enabled": false, "HealthCheck_Enabled": false,
"RabbitMQ_Enabled": false, "RabbitMQ_Enabled": false,
"Redis_Enabled": false, "Redis_Enabled": false,
"RedisSeed_Enabled": false,
"Kafka_Enabled": false, "Kafka_Enabled": false,
"ElasticSeach_Enabled": false, "ElasticSeach_Enabled": false,
"MutiDB_Enabled": false, "MutiDB_Enabled": false,
@@ -23,57 +21,60 @@
"CAP_Enabled": false, "CAP_Enabled": false,
"CAPDashboard_Enabled": false, "CAPDashboard_Enabled": false,
"DbSeed_Enabled": true,
"RedisSeed_Enabled": false,
"Cors_Enabled": true, "Cors_Enabled": true,
"DbList": [ "Sqlite", "Mysql", "Sqlserver", "Oracle" ], "DbList": [ "Sqlite", "Mysql", "Sqlserver", "Oracle" ],
"DbSelect": "Mysql", "DbSelect": "Sqlite",
"Pan": {
"ZipPath": "D:/AppWeb/test/zip"
},
"DbConn": { "DbConn": {
//"WriteUrl": "DataSource=yi-sqlsugar-dev.db", "WriteUrl": "DataSource=yi-sqlsugar-dev.db",
"WriteUrl": "server=[xxxx];port=3306;database=[xxxx];user id=[xxxx];password=[xxxx]", //"WriteUrl": "server=119.91.207.67;port=3306;database=yi-sqlsugar-dev;user id=root;password=Qz52013142020.",
"ReadUrl": [ "ReadUrl": [
"server=[xxxx];port=3306;database=[xxxx];user id=[xxxx];password=[xxxx]", "server=119.91.207.67;port=3306;database=yi-sqlsugar-dev;user id=root;password=Qz52013142020.",
"server=[xxxx];port=3306;database=[xxxx];user id=[xxxx];password=[xxxx]", "server=119.91.207.67;port=3306;database=yi-sqlsugar-dev;user id=root;password=Qz52013142020.",
"server=[xxxx];port=3306;database=[xxxx];user id=[xxxx];password=[xxxx]" "server=119.91.207.67;port=3306;database=yi-sqlsugar-dev;user id=root;password=Qz52013142020."
] ]
}, },
"JWTTokenOptions": { "JwtAuthorize": {
"Audience": "http://localhost:7000", "Issuer": "cc",
"Issuer": "http://localhost:7000", "Audience": "cc",
"SecurityKey": "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDI2a2EJ7m872v0afyoSDJT2o1+SitIeJSWtLJU8/Wz2m7gStexajkeD+Lka6DSTy8gt9UwfgVQo6uKjVLG5Ex7PiGOODVqAEghBuS7JzIYU5RvI543nNDAPfnJsas96mSA7L/mD7RTE2drj6hf3oZjJpMPZUQI/B1Qjb5H3K3PNwIDAQAB" "PolicyName": "permission",
"DefaultScheme": "Bearer",
"IsHttps": false,
"Expiration": 30,
"ReExpiration": 3000
}, },
"RedisConnOptions": { "RedisConnOptions": {
"Host": "[xxxx]", "Host": "118.195.191.41",
"Prot": 6379, "Prot": 6379,
"DB": 1, "DB": 1,
"Password": "[xxxx]" "Password": "Qz52013142020."
}, },
"RabbitConn": { "RabbitConn": {
"HostName": "[xxxx]", "HostName": "118.195.191.41",
"UserName": "[xxxx]", "UserName": "cc",
"Password": "[xxxx]", "Password": "cc",
"Port": 5672 "Port": 5672
}, },
"ElasticSeachConn": { "ElasticSeachConn": {
"Url": "[xxxx]", "Url": "https://es-4zakkyyn.public.tencentelasticsearch.com:9200",
"IndexName": "[xxxx]", "IndexName": "yies",
"UserName": "[xxxx]", "UserName": "elastic",
"PassWord": "[xxxx]" "PassWord": "Qz52013142020."
}, },
"KafkaOptions": { "KafkaOptions": {
"BrokerList": "[xxxx]", "BrokerList": "192.168.3.230:9092",
"TopicName": "[xxxx]" "TopicName": "kafkalog"
}, },
"ConsulClientOption": { "ConsulClientOption": {
"IP": "[xxxx]", "IP": "118.195.191.41",
"Port": "[xxxx]", "Port": "8500",
"Datacenter": "[xxxx]" "Datacenter": "dc1"
}, },
"ConsulRegisterOption": { "ConsulRegisterOption": {
"IP": "[xxxx]", "IP": "118.195.191.41",
"Port": "19001", "Port": "19005",
"GroupName": "ApiMicroservice", "GroupName": "ApiMicroservice",
"HealthCheckUrl": "/Health", "HealthCheckUrl": "/Health",
"Interval": 10, "Interval": 10,
@@ -82,10 +83,10 @@
"Tag": "13" "Tag": "13"
}, },
"SMS": { "SMS": {
"ID": "[xxxx]", "ID": "LTAI5tJvjPaXCyyPMfXLNbVA",
"Secret": "[xxxx]", "Secret": "fLQv7jjj57fUKLFK8REeAQPFVDjUYn",
"Sign": "[xxxx]", "Sign": "JiftCC",
"Template": "[xxxx]" "Template": "SMS_221640732"
}, },
"IPLibraryServiceUrl": "http://gRPCIPLibraryService" "IPLibraryServiceUrl": "http://gRPCIPLibraryService"
} }

View File

@@ -31,7 +31,7 @@ namespace Yi.Framework.WebCore.MiddlewareExtend
//为 Swagger JSON and UI设置xml文档注释路径 //为 Swagger JSON and UI设置xml文档注释路径
//获取应用程序所在目录(绝对路径不受工作目录影响建议采用此方法获取路径使用windwos&Linux //获取应用程序所在目录(绝对路径不受工作目录影响建议采用此方法获取路径使用windwos&Linux
var basePath = Path.GetDirectoryName(typeof(Program).Assembly.Location); var basePath = Path.GetDirectoryName(typeof(Program).Assembly.Location);
var apiXmlPath = Path.Combine(basePath, @"SwaggerDoc.xml");//控制器层注释 var apiXmlPath = Path.Combine(basePath, @"Config/SwaggerDoc.xml");//控制器层注释
//var entityXmlPath = Path.Combine(basePath, @"SwaggerDoc.xml");//实体注释 //var entityXmlPath = Path.Combine(basePath, @"SwaggerDoc.xml");//实体注释
//c.IncludeXmlComments(apiXmlPath, true);//true表示显示控制器注释 //c.IncludeXmlComments(apiXmlPath, true);//true表示显示控制器注释
c.IncludeXmlComments(apiXmlPath, true); c.IncludeXmlComments(apiXmlPath, true);