Browse Source

取消跟踪config

Pchen0 5 hours ago
parent
commit
5061aeae26
3 changed files with 98 additions and 97 deletions
  1. 2 1
      .gitignore
  2. 96 0
      config.example.json
  3. 0 96
      config.json

+ 2 - 1
.gitignore

@@ -1,3 +1,4 @@
 node_modules/
 node_modules/
 *.log
 *.log
-uploads/
+uploads/
+config.json

+ 96 - 0
config.example.json

@@ -0,0 +1,96 @@
+{
+    "port": 30003,
+    "database": {
+        "host": "YOUR_MYSQL_HOST",
+        "database": "YOUR_DB_NAME",
+        "port": 3306,
+        "user": "YOUR_DB_USER",
+        "password": "YOUR_DB_PASSWORD",
+        "connectTimeout": 30000
+    },
+    "redis": {
+        "host": "localhost",
+        "port": 6379,
+        "password": ""
+    },
+    "rabbitmq": {
+        "url": "amqp://USER:PASSWORD@HOST:5672",
+        "managementBaseUrl": "http://HOST:15672",
+        "reconnectInterval": 5000,
+        "lepaoScheduleTickMs": 2000,
+        "lepaoScheduleBatch": 100,
+        "mqPrefix": ""
+    },
+    "email": [
+        {
+            "host": "smtp.primary.example.com",
+            "port": 587,
+            "secure": false,
+            "user": "noreply@primary.example.com",
+            "password": "YOUR_SMTP_PASSWORD_1",
+            "from": "Display Name <noreply@primary.example.com>"
+        },
+        {
+            "host": "smtp.secondary.example.com",
+            "port": 465,
+            "secure": true,
+            "user": "mail@secondary.example.com",
+            "password": "YOUR_SMTP_PASSWORD_2",
+            "from": "Display Name <mail@secondary.example.com>"
+        },
+        {
+            "host": "smtp.zeptomail.example.com",
+            "port": 587,
+            "secure": true,
+            "user": "noreply@mail.secondary.example.com",
+            "password": "YOUR_SMTP_PASSWORD_3",
+            "from": "Display Name <noreply@mail.secondary.example.com>"
+        },
+        {
+            "host": "smtp.exmail.example.com",
+            "port": 465,
+            "secure": true,
+            "user": "mail@domain.example.com",
+            "password": "YOUR_SMTP_PASSWORD_4",
+            "from": "Display Name <mail@domain.example.com>"
+        }
+    ],
+    "url": "https://your-lepao-api.example.com",
+    "url2": "http://127.0.0.1:30004",
+    "url3": "http://127.0.0.1:30001",
+    "runpy": "http://127.0.0.1:58000/api",
+    "pay": {
+        "url": "https://pay.example.com",
+        "pid": 0,
+        "key": "YOUR_PAY_KEY",
+        "return_url": "https://your-site.example/#/store/orderDetail/",
+        "uni_return_url": "https://m.your-site.example/#/pages/order/order-detail?id="
+    },
+    "unilogin": {
+        "url": "https://open.example.com",
+        "appid": "YOUR_APPID",
+        "appkey": "YOUR_APPKEY",
+        "return_url": "https://your-site.example/uniLogin/loginSuccess",
+        "uni_return_url": "https://m.your-site.example/#/pages/login/login"
+    },
+    "qgChannelProxy": {
+        "extractKey": "YOUR_EXTRACT_KEY",
+        "authUser": "YOUR_AUTH_USER",
+        "authPassword": "YOUR_AUTH_PASSWORD"
+    },
+    "server": "YOUR_SERVER_LABEL",
+    "onebotv11": {
+        "enabled": false,
+        "transport": "reverse_ws",
+        "reverseWsUrl": "ws://127.0.0.1:15700",
+        "reverseWsPath": "/ws",
+        "reverseWsHost": "0.0.0.0",
+        "reverseWsPort": 15700,
+        "reverseWsToken": "YOUR_WS_TOKEN",
+        "callbackToken": "YOUR_CALLBACK_TOKEN",
+        "ticketSenderNickname": "工单机器人",
+        "selfId": "your-bot-id",
+        "botName": "BotName",
+        "botUuid": "your-bot-uuid"
+    }
+}

+ 0 - 96
config.json

@@ -1,96 +0,0 @@
-{
-    "port": 30003,
-    "database": {
-        "host": "xxoo365.top",
-        "database": "ic",
-        "port": 3306,
-        "user": "ic",
-        "password": "yx3ud937",
-        "connectTimeout": 30000
-    },
-    "redis": {
-        "host": "localhost",
-        "port": 5173,
-        "password": ""
-    },
-    "rabbitmq": {
-        "url": "amqp://zspsb:Yx3ud937@xxoo365.top:5672",
-        "managementBaseUrl": "http://xxoo365.top:15670",
-        "reconnectInterval": 5000,
-        "lepaoScheduleTickMs": 2000,
-        "lepaoScheduleBatch": 100,
-        "mqPrefix": "test_"
-    },
-    "email": [
-        {
-            "host": "mail.xxoo365.top",
-            "port": 587,
-            "secure": false,
-            "user": "noreply@xxoo365.top",
-            "password": "Yx3ud937",
-            "from": "RunForge智能校园乐跑平台 <noreply@xxoo365.top>"
-        },
-        {
-            "host": "smtp.zoho.com",
-            "port": 465,
-            "secure": true,
-            "user": "mail@xxoo365.top",
-            "password": "yx3ud937",
-            "from": "RunForge智能校园乐跑平台 <mail@xxoo365.top>"
-        },
-        {
-            "host": "smtp.zeptomail.com",
-            "port": 587,
-            "secure": true,
-            "user": "noreply@mail.xxoo365.top",
-            "password": "wSsVR60k+xX5X6osmGCsL708nFUHAw6gE09/ilGo7iL6G/3Cp8dowRDKVlenTvkfGGFvQmMbrOkgnUtV2zMJit4smQlSXiiF9mqRe1U4J3x17qnvhDzIXWlakBeLKo8Aww1omGBoEsgn+g==",
-            "from": "RunForge智能校园乐跑平台 <noreply@mail.xxoo365.top>"
-        },
-        {
-            "host": "smtp.exmail.qq.com",
-            "port": 465,
-            "secure": true,
-            "user": "mail@ctbu.top",
-            "password": "FPhxUVrt5J9WxgiP",
-            "from": "RunForge智能校园乐跑平台 <mail@ctbu.top>"
-        }
-    ],
-    "url": "https://lepao-api.xxoo365.top",
-    "url2": "http://127.0.0.1:30004",
-    "url3": "http://127.0.0.1:30001",
-    "runpy": "http://127.0.0.1:58000/api",
-    "pay": {
-        "url": "https://pay.gggua.com",
-        "pid": 1296,
-        "key": "MW222B33ytTv23tf2Z2tFV2k23iHVQ3q",
-        "return_url": "https://xxoo365.top/#/store/orderDetail/",
-        "uni_return_url": "https://m.xxoo365.top/#/pages/order/order-detail?id="
-    },
-    "unilogin": {
-        "url": "https://open.losfer.cn",
-        "appid": "1274",
-        "appkey": "e9dd049e0d991b997901957200036b30",
-        "return_url": "https://xxoo365.top/uniLogin/loginSuccess",
-        "uni_return_url": "https://m.xxoo365.top/#/pages/login/login"
-    },
-    "qgChannelProxy": {
-        "extractKey": "D506DCB9",
-        "authUser": "D506DCB9",
-        "authPassword": "B4554DA1F959"
-    },
-    "server": "CTBU_CLUB 重庆1号服务器",
-    "onebotv11": {
-        "enabled": true,
-        "transport": "reverse_ws",
-        "reverseWsUrl": "ws://211.101.235.68:15700",
-        "reverseWsPath": "/ws",
-        "reverseWsHost": "0.0.0.0",
-        "reverseWsPort": 15700,
-        "reverseWsToken": "Yx3ud937",
-        "callbackToken": "Yx3ud937",
-        "ticketSenderNickname": "RunForge工单",
-        "selfId": "runforge",
-        "botName": "小妍助理",
-        "botUuid": "onebot-v11-xiaoyan-assistant"
-    }
-}