mirror of
https://github.com/anjoy8/Blog.Core.git
synced 2024-09-20 23:48:27 +08:00
fix:set service name to appstting.json
This commit is contained in:
parent
6a79425f65
commit
72e539db82
|
@ -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();
|
||||
|
|
|
@ -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": "", // 输出elk的tcp连接地址
|
||||
"tcpAddressPort": 0, // 输出elk的tcp端口号
|
||||
"LogFiedOutPutConfigs": {
|
||||
"tcpAddressHost": "", // 输出elk的tcp连接地址
|
||||
"tcpAddressPort": 0, // 输出elk的tcp端口号
|
||||
"ConfigsInfo": [ // 配置的输出elk节点内容 常用语动态标识
|
||||
{
|
||||
"FiedName": "applicationName",
|
||||
|
|
|
@ -31,8 +31,9 @@
|
|||
/// 前缀名
|
||||
/// 如果不需要,尽量留空,不要修改
|
||||
/// 除非一定要在所有的 api 前统一加上特定前缀
|
||||
/// 前缀在appsettings.json中配置
|
||||
/// </summary>
|
||||
public const string Name = "";
|
||||
public static string Name = "";
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
Loading…
Reference in New Issue
Block a user