From 193068f7b5eed5c5722c16b31ec170564c455031 Mon Sep 17 00:00:00 2001
From: liaoxujun@qq.com <liaoxujun@qq.com>
Date: 星期三, 26 七月 2023 15:45:42 +0800
Subject: [PATCH]  jwt 配置,codefist  sqlsug数据服务注入

---
 DocumentServiceAPI.Web.Entry/appsettings.json |   43 ++++++++++++++++++++++++++++++++++++++++---
 1 files changed, 40 insertions(+), 3 deletions(-)

diff --git a/DocumentServiceAPI.Web.Entry/appsettings.json b/DocumentServiceAPI.Web.Entry/appsettings.json
index 8b4498e..b8028f9 100644
--- a/DocumentServiceAPI.Web.Entry/appsettings.json
+++ b/DocumentServiceAPI.Web.Entry/appsettings.json
@@ -10,9 +10,46 @@
   "AllowedHosts": "*",
   "ConnectionConfigs": [
     {
-      "ConnectionString": "Data Source=./Furion.db",
-      "DbType": "Sqlite",
+
+      "ConfigId": "default", //澶氬簱閰嶇疆ID
+      "ConnectionString": "Server=localhost\\SQLEXPRESS;Database=DocApi;User ID=sa;Password=123456;",
+      "DbType": "SqlServer",
       "IsAutoCloseConnection": true
+
     }
-  ]
+  ],
+
+  //swags 鍚嶇О閰嶇疆 榛樿鍒嗙粍
+  "[openapi:Default]": {
+    "Title": "鏍囦功绠$悊绯荤粺鏈嶅姟",
+    "Order": 0,
+    "Description": "杩欎釜涓�涓緢濂界敤鏍囦功绠$悊绯荤粺鏈嶅姟杞欢",
+    "Version": "1.0.0",
+    "TermsOfService": "http://www.51zhengcai.com",
+    "Contact": {
+      "Name": "鏀块噰鍜ㄨ鏈夐檺鍏徃",
+      "Url": "http://www.51zhengcai.com"
+
+    },
+    "License": {
+      "Name": "鏀块噰鍜ㄨ鏈夐檺鍏徃",
+      "Url": "http://www.51zhengcai.com"
+    }
+  },
+
+
+  "JWTSettings": {
+    "ValidateIssuerSigningKey": true, // 鏄惁楠岃瘉瀵嗛挜锛宐ool 绫诲瀷锛岄粯璁rue
+    "IssuerSigningKey": "129(*dasd09213)*(*jKDl", // 瀵嗛挜锛宻tring 绫诲瀷锛屽繀椤绘槸澶嶆潅瀵嗛挜锛岄暱搴﹀ぇ浜�16
+    "ValidateIssuer": true, // 鏄惁楠岃瘉绛惧彂鏂癸紝bool 绫诲瀷锛岄粯璁rue
+    "ValidIssuer": "www.51zhengcai.com", // 绛惧彂鏂癸紝string 绫诲瀷
+    "ValidateAudience": true, // 鏄惁楠岃瘉绛炬敹鏂癸紝bool 绫诲瀷锛岄粯璁rue
+    "ValidAudience": "www.51zhengcai.com", // 绛炬敹鏂癸紝string 绫诲瀷
+    "ValidateLifetime": true, // 鏄惁楠岃瘉杩囨湡鏃堕棿锛宐ool 绫诲瀷锛岄粯璁rue锛屽缓璁畉rue
+    "ExpiredTime": 20, // 杩囨湡鏃堕棿锛宭ong 绫诲瀷锛屽崟浣嶅垎閽燂紝榛樿20鍒嗛挓
+    "ClockSkew": 5, // 杩囨湡鏃堕棿瀹归敊鍊硷紝long 绫诲瀷锛屽崟浣嶇锛岄粯璁� 5绉�
+    "Algorithm": "HS256" // 鍔犲瘑绠楁硶锛宻tring 绫诲瀷锛岄粯璁� HS256
+  }
+
+
 }
\ No newline at end of file

--
Gitblit v1.9.1