From 9658cf5e4853909d1a34893825390eb195227cb6 Mon Sep 17 00:00:00 2001
From: wangrong <wangrong@shsening.com>
Date: 星期二, 08 九月 2026 14:57:03 +0800
Subject: [PATCH] 提交数据库连接配置文件
---
src/config/config.local.ts | 4 ++--
src/config/config.default.ts | 2 +-
src/config/config.prod.ts | 12 ++++++------
3 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/src/config/config.default.ts b/src/config/config.default.ts
index 5f302d7..3dcd9fb 100644
--- a/src/config/config.default.ts
+++ b/src/config/config.default.ts
@@ -64,7 +64,7 @@
// },
cool: {
redis: {
- host: '192.168.122.16',
+ host: '127.0.0.1',
password: '',
port: 6379,
db: 10,
diff --git a/src/config/config.local.ts b/src/config/config.local.ts
index 4cb48c9..15f8f75 100644
--- a/src/config/config.local.ts
+++ b/src/config/config.local.ts
@@ -14,13 +14,13 @@
dataSource: {
default: {
type: 'mysql',
- host: '115.159.85.154',
+ host: '127.0.0.1',
port: 8806,
username: 'womp',
password: 'Sening@2023',
database: 'womp-shop',
// 鑷姩寤鸿〃 娉ㄦ剰锛氱嚎涓婇儴缃茬殑鏃跺�欎笉瑕佷娇鐢紝鏈夊彲鑳藉鑷存暟鎹涪澶�
- synchronize: true,
+ synchronize: false,
// 鎵撳嵃鏃ュ織
logging: true,
// 瀛楃闆�
diff --git a/src/config/config.prod.ts b/src/config/config.prod.ts
index 53f23fa..c2bd76a 100644
--- a/src/config/config.prod.ts
+++ b/src/config/config.prod.ts
@@ -6,10 +6,10 @@
import Redis from 'ioredis';
const redis = {
- host: '192.168.122.16',
+ host: '127.0.0.1',
port: 6379,
password: '',
- db: 0,
+ db: 10,
};
const pubClient = new Redis(redis);
const subClient = pubClient.duplicate();
@@ -27,10 +27,10 @@
default: {
type: 'mysql',
host: '127.0.0.1',
- port: 3306,
- username: 'root',
- password: '123456',
- database: 'cool',
+ port: 8806,
+ username: 'womp',
+ password: 'Sening@2023',
+ database: 'womp-shop',
// 鑷姩寤鸿〃 娉ㄦ剰锛氱嚎涓婇儴缃茬殑鏃跺�欎笉瑕佷娇鐢紝鏈夊彲鑳藉鑷存暟鎹涪澶�
synchronize: false,
// 鎵撳嵃鏃ュ織
--
Gitblit v1.9.1