feat: 增加 UseHttps 配置

This commit is contained in:
Argo Zhang 2019-12-03 23:10:42 +08:00
parent cbdbd270c2
commit 0376daa963
No known key found for this signature in database
GPG Key ID: 152E398953DDF19F
2 changed files with 2 additions and 1 deletions

View File

@ -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();

View File

@ -61,6 +61,7 @@
}
],
"AppId": "BA",
"UseHttps": true,
"SwaggerPathBase": "",
"AllowOrigins": "http://localhost,http://ba.sdgxgz.cn",
"HealthsCloudUrl": "https://client.sdgxgz.com/api/Interface/Healths",