后端版本服务器部署成功

This commit is contained in:
2025-09-11 15:05:23 +08:00
parent 9b7a0482e1
commit 068b7887a9
15 changed files with 575 additions and 410 deletions

View File

@@ -5,7 +5,7 @@ require('dotenv').config({ path: path.join(__dirname, '../../.env') })
const config = {
// 开发环境
development: {
port: process.env.PORT || 3200,
port: process.env.PORT || 3110,
mysql: {
host: process.env.DB_HOST || 'nj-cdb-3pwh2kz1.sql.tencentcdb.com',
port: process.env.DB_PORT || 20784,
@@ -38,7 +38,7 @@ const config = {
// 测试环境
test: {
port: process.env.PORT || 3200,
port: process.env.PORT || 3110,
mysql: {
host: process.env.DB_HOST || 'nj-cdb-3pwh2kz1.sql.tencentcdb.com',
port: process.env.DB_PORT || 20784,
@@ -62,7 +62,7 @@ const config = {
// 生产环境
production: {
port: process.env.PORT || 3200,
port: process.env.PORT || 3110,
mysql: {
host: process.env.DB_HOST || 'nj-cdb-3pwh2kz1.sql.tencentcdb.com',
port: process.env.DB_PORT || 20784,
@@ -88,7 +88,7 @@ const config = {
allowedTypes: ['image/jpeg', 'image/png', 'image/webp']
},
cors: {
origin: process.env.CORS_ORIGIN || 'https://your-domain.com',
origin: process.env.CORS_ORIGIN || 'https://www.jiebanke.com',
credentials: true
}
}