fix:set service name to appstting.json

This commit is contained in:
anjoy8 2022-02-07 09:49:05 +08:00
parent 6a79425f65
commit 72e539db82
3 changed files with 7 additions and 4 deletions

View File

@ -48,6 +48,7 @@ namespace Blog.Core
services.AddUiFilesZipSetup(Env);
Permissions.IsUseIds4 = Appsettings.app(new string[] { "Startup", "IdentityServer4", "Enabled" }).ObjToBool();
RoutePrefix.Name = Appsettings.app(new string[] { "Startup", "SvcName" }).ObjToString();
// 确保从认证中心返回的ClaimType不被更改不使用Map映射
JwtSecurityTokenHandler.DefaultInboundClaimTypeMap.Clear();

View File

@ -72,6 +72,7 @@
"SeedDBEnabled": true, //
"SeedDBDataEnabled": true, //,
"Author": "Blog.Core",
"SvcName": "", // /svc/blog
"UseLoadTest": false
},
@ -277,9 +278,9 @@
"Port": "9291", //
"RegisterEnabled": true // nacos
},
"LogFiedOutPutConfigs": {
"tcpAddressHost": "", // elktcp
"tcpAddressPort": 0, // elktcp
"LogFiedOutPutConfigs": {
"tcpAddressHost": "", // elktcp
"tcpAddressPort": 0, // elktcp
"ConfigsInfo": [ // elk
{
"FiedName": "applicationName",

View File

@ -31,8 +31,9 @@
/// 前缀名
/// 如果不需要,尽量留空,不要修改
/// 除非一定要在所有的 api 前统一加上特定前缀
/// 前缀在appsettings.json中配置
/// </summary>
public const string Name = "";
public static string Name = "";
}
/// <summary>