增加上传华为云obs接口
This commit is contained in:
@@ -16,6 +16,10 @@ namespace Ewide.Web.Entry
|
||||
{
|
||||
webBuilder.Inject()
|
||||
.UseStartup<Startup>();
|
||||
//.UseKestrel(options =>
|
||||
//{
|
||||
// options.Limits.MaxRequestBodySize = null; // 设置 null 就是不限制,具体值就是限制最大多少 M
|
||||
//});
|
||||
})
|
||||
.UseSerilogDefault();
|
||||
}
|
||||
|
||||
@@ -33,7 +33,15 @@
|
||||
"WithOrigins": [ "http://localhost:8080", "https://mapi.zjzwfw.gov.cn" ]
|
||||
},
|
||||
"AppSettings": {
|
||||
"InjectSpecificationDocument": false
|
||||
"InjectSpecificationDocument1": false
|
||||
},
|
||||
"OSSProvider": {
|
||||
"Provider": "HuaweiCloud", //枚举值支持:Minio/Aliyun/QCloud
|
||||
"Endpoint": "http://10.74.25.87:6020", //腾讯云中表示AppId
|
||||
"Region": "", //地域
|
||||
"AccessKey": "C4D30C2801D928AAF687",
|
||||
"SecretKey": "ooZVXaB1tqIz7DHTv53RILD7o5cAAAGAAdkoqlR2",
|
||||
"IsEnableCache": true //是否启用缓存,推荐开启
|
||||
}
|
||||
|
||||
}
|
||||
10
20220330_Vote/Ewide.Web.Entry/web.config
Normal file
10
20220330_Vote/Ewide.Web.Entry/web.config
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<system.webServer>
|
||||
<security>
|
||||
<requestFiltering>
|
||||
<requestLimits maxAllowedContentLength="1073741824" />
|
||||
</requestFiltering>
|
||||
</security>
|
||||
</system.webServer>
|
||||
</configuration>
|
||||
Reference in New Issue
Block a user