feat: 增加 UseHttps 配置
This commit is contained in:
parent
cbdbd270c2
commit
0376daa963
|
@ -97,7 +97,7 @@ namespace Bootstrap.Admin
|
|||
}
|
||||
|
||||
app.UseStatusCodePagesWithReExecute("/Home/Error/{0}");
|
||||
app.UseHttpsRedirection();
|
||||
if (Configuration.GetValue("UseHttps", true)) app.UseHttpsRedirection();
|
||||
app.UseResponseCompression();
|
||||
app.UseStaticFiles();
|
||||
app.UseAutoGenerateDatabase();
|
||||
|
|
|
@ -61,6 +61,7 @@
|
|||
}
|
||||
],
|
||||
"AppId": "BA",
|
||||
"UseHttps": true,
|
||||
"SwaggerPathBase": "",
|
||||
"AllowOrigins": "http://localhost,http://ba.sdgxgz.cn",
|
||||
"HealthsCloudUrl": "https://client.sdgxgz.com/api/Interface/Healths",
|
||||
|
|
Loading…
Reference in New Issue