瀏覽代碼

调整默认配置 !510

zuohuaijun 3 年之前
父節點
當前提交
9d4689da1e
共有 1 個文件被更改,包括 24 次插入24 次删除
  1. 24 24
      Admin.NET/Admin.NET.Application/Configuration/App.json

+ 24 - 24
Admin.NET/Admin.NET.Application/Configuration/App.json

@@ -1,29 +1,29 @@
 {
-  "$schema": "https://gitee.com/dotnetchina/Furion/raw/net6/schemas/v3/furion-schema.json",
+    "$schema": "https://gitee.com/dotnetchina/Furion/raw/net6/schemas/v3/furion-schema.json",
 
-  //"Urls": "https://*:5005",
+    //"Urls": "https://*:5005",
 
-  "AllowedHosts": "*",
+    "AllowedHosts": "*",
 
-  "AppSettings": {
-    "InjectSpecificationDocument": true // 生产环境是否开启Swagger
-  },
-  "DynamicApiControllerSettings": {
-    "LowercaseRoute": false,
-    "KeepName": true,
-    "AsLowerCamelCase": true // 小驼峰路由路径
-  },
-  "FriendlyExceptionSettings": {
-    "DefaultErrorMessage": "系统异常,请联系管理员",
-    "ThrowBah": true,
-    "LogError": false // 是否输出异常日志,默认true
-  },
-  "LocalizationSettings": {
-    "SupportedCultures": [ "zh-CN", "en-US" ], // 语言列表
-    "DefaultCulture": "zh-CN" // 默认语言
-  },
-  "CorsAccessorSettings": {
-    "WithExposedHeaders": [ "Content-Disposition" ], // 如果前端不代理且是axios请求
-    "SignalRSupport": true // 启用 SignalR 跨域支持
-  }
+    "AppSettings": {
+        "InjectSpecificationDocument": true // 生产环境是否开启Swagger
+    },
+    "DynamicApiControllerSettings": {
+        "LowercaseRoute": false,
+        "KeepName": true,
+        "AsLowerCamelCase": true // 小驼峰路由路径
+    },
+    "FriendlyExceptionSettings": {
+        "DefaultErrorMessage": "系统异常,请联系管理员",
+        "ThrowBah": true,
+        "LogError": false // 是否输出异常日志,默认true
+    },
+    "LocalizationSettings": {
+        "SupportedCultures": [ "zh-CN", "en-US" ], // 语言列表
+        "DefaultCulture": "zh-CN" // 默认语言
+    },
+    "CorsAccessorSettings": {
+        "WithExposedHeaders": [ "Content-Disposition" ], // 如果前端不代理且是axios请求
+        "SignalRSupport": true // 启用 SignalR 跨域支持
+    }
 }