Эх сурвалжийг харах

移除 appsettings.json 中的多个配置项

本次提交移除了 `appsettings.json` 文件中的多个配置项,包括日志记录、连接配置、Serilog 配置、ESB URL 以及其他一些设置。此外,添加了对 `FodyWeavers.xsd` 文件的忽略。
林豪 左 1 сар өмнө
parent
commit
8ec3cb69e8
2 өөрчлөгдсөн 2 нэмэгдсэн , 76 устгасан
  1. 2 1
      .gitignore
  2. 0 75
      wms.api/appsettings.json

+ 2 - 1
.gitignore

@@ -360,4 +360,5 @@ MigrationBackup/
 .ionide/
 
 # Fody - auto-generated XML schema
-FodyWeavers.xsd
+FodyWeavers.xsd
+/wms.api/appsettings.json

+ 0 - 75
wms.api/appsettings.json

@@ -1,75 +0,0 @@
-{
-  "Logging": {
-    "LogLevel": {
-      "Default": "Information",
-      "Microsoft.AspNetCore": "Warning"
-    }
-  },
-  "AllowedHosts": "*",
-  "ConnectionConfigs": [
-    {
-      //"ConnectionString": "Data Source=10.30.44.50;User ID=sa;Password=P@ssw0rd;Initial Catalog=WMS_ZT_01SX",
-      //"ConnectionString": "Data Source=.;User ID=sa;Password=Aa123456;Initial Catalog=WMS_ZT_01HJ",
-      "ConnectionString": "Data Source=118.178.107.197;User ID=bz;Password=123456;Initial Catalog=WMS_ZT_01SX",
-      "DbType": 1,
-      "ConfigId": "sx",
-      "IsAutoCloseConnection": true
-    }
-   ],
-  "CSRedisConnectString": "127.0.0.1[:6379],password=123456,defaultDatabase=0",
-  "Serilog": {
-    "MinimumLevel": {
-      "Default": "Debug", //最小记录日志级别
-      "Override": {
-        "Default": "Warning",
-        "System": "Warning",
-        "Microsoft": "Warning"
-      }
-    },
-    "Enrich": [ "FromLogContext", "WithThreadId" ],
-    "WriteTo": [
-      {
-        "Name": "Console",
-        "Args": {
-          "outputTemplate": "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} {SourceContext} {ThreadId} [{Level:u3}] {Message:lj}{NewLine}{Exception}"
-        }
-      },
-      {
-        "Name": "Debug",
-        "Args": {
-          "outputTemplate": "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} {SourceContext} {ThreadId} [{Level:u3}] {Message:lj}{NewLine}{Exception}"
-        }
-      },
-      {
-        "Name": "File",
-        "Args": {
-          "path": "Logs/log.txt",
-          "formatter": "Serilog.Formatting.Compact.CompactJsonFormatter",
-          "rollingInterval": "Day",
-          "outputTemplate": "{ClientIP}{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} {SourceContext} {ThreadId} [{Level:u3}] {Message:lj}{NewLine}{Exception}",
-          "shared": true,
-          "rollOnFileSizeLimit": true,
-          "fileSizeLimitBytes": 102400000,
-          "retainedFileCountLimit": 365
-        }
-      }
-    ]
-  },
-  "EsbMesPushUrl": "http://esb.zt.net.cn:18080/esb/comm/api",
-  //“EsbMesPushUrlM”: “”,
-  "EsbMesPushUrlMq": "http://esb.zt.net.cn:18080/esb/comm/mq",
-  "EsbMesPushUrlPubMq": "http://esb.zt.net.cn:18080/esb/pub/mq",
-  "RcsCreateTaskPushUrl": "",
-  "RcsContinuePushUrl": "",
-  "MaterInfo": "62103902,62100305,62101201,62102103,62100801,62102402,62102506,62101804,62100701,62101803,62101202,62100101,62102301,62100201,62102204,62100203,62102203,62100104,62101601,62100902",
-  "TorTaskCount": "54",//68
-  "IWmsStockInPushUrl": "databus/publish/zhongTianOutStock",
-  "IWmsStockOutPushUrl": "databus/publish/zhongTianIntoStock",
-  "MoveReservedLocationCount": "1",
-  "CopperLineToEmptyAreaCode": "21",
-  "webapi": "http://10.30.44.3:8011",
-  "maxweight": "950",
-  "TimeOutHoldHours": "72",
-  "ForbidLayer": "",
-  "FloorCount": "72"
-}